Record Class WGPUInstanceExtras
java.lang.Object
java.lang.Record
club.doki7.webgpu.datatype.WGPUInstanceExtras
- All Implemented Interfaces:
IPointer
,IWGPUInstanceExtras
@ValueBasedCandidate
@UnsafeConstructor
public record WGPUInstanceExtras(@NotNull MemorySegment segment)
extends Record
implements IWGPUInstanceExtras
Represents a pointer to a WGPUInstanceExtras
structure in native memory.
Structure
typedef struct WGPUInstanceExtras {
WGPUChainedStruct
chain
;
WGPUInstanceBackend
backends
;
WGPUInstanceFlag
flags
;
WGPUDx12Compiler
dx12ShaderCompiler
;
WGPUGles3MinorVersion
gles3MinorVersion
;
WGPUGLFenceBehaviour
glFenceBehaviour
;
WGPUStringView
dxilPath
;
WGPUStringView
dxcPath
;
WGPUDxcMaxShaderModel
dxcMaxShaderModel
;
} WGPUInstanceExtras;
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfLong
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final StructLayout
static final StructLayout
static final ValueLayout.OfLong
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionWGPUInstanceExtras
(@NotNull MemorySegment segment) Creates an instance of aWGPUInstanceExtras
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WGPUInstanceExtras
static WGPUInstanceExtras.Ptr
long
backends()
backends
(long value) @NotNull WGPUChainedStruct
chain()
chain
(@NotNull WGPUChainedStruct value) chain
(Consumer<@NotNull WGPUChainedStruct> consumer) static WGPUInstanceExtras
clone
(Arena arena, WGPUInstanceExtras src) int
dx12ShaderCompiler
(int value) int
dxcMaxShaderModel
(int value) @NotNull WGPUStringView
dxcPath()
dxcPath
(@NotNull WGPUStringView value) dxcPath
(Consumer<@NotNull WGPUStringView> consumer) @NotNull WGPUStringView
dxilPath()
dxilPath
(@NotNull WGPUStringView value) dxilPath
(Consumer<@NotNull WGPUStringView> consumer) final boolean
Indicates whether some other object is "equal to" this one.long
flags()
flags
(long value) int
gles3MinorVersion
(int value) int
glFenceBehaviour
(int value) final int
hashCode()
Returns a hash code value for this object.@NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$chain
-
PATH$backends
-
PATH$flags
-
PATH$dx12ShaderCompiler
-
PATH$gles3MinorVersion
-
PATH$glFenceBehaviour
-
PATH$dxilPath
-
PATH$dxcPath
-
PATH$dxcMaxShaderModel
-
LAYOUT$chain
-
LAYOUT$backends
-
LAYOUT$flags
-
LAYOUT$dx12ShaderCompiler
-
LAYOUT$gles3MinorVersion
-
LAYOUT$glFenceBehaviour
-
LAYOUT$dxilPath
-
LAYOUT$dxcPath
-
LAYOUT$dxcMaxShaderModel
-
SIZE$chain
public static final long SIZE$chain -
SIZE$backends
public static final long SIZE$backends -
SIZE$flags
public static final long SIZE$flags -
SIZE$dx12ShaderCompiler
public static final long SIZE$dx12ShaderCompiler -
SIZE$gles3MinorVersion
public static final long SIZE$gles3MinorVersion -
SIZE$glFenceBehaviour
public static final long SIZE$glFenceBehaviour -
SIZE$dxilPath
public static final long SIZE$dxilPath -
SIZE$dxcPath
public static final long SIZE$dxcPath -
SIZE$dxcMaxShaderModel
public static final long SIZE$dxcMaxShaderModel -
OFFSET$chain
public static final long OFFSET$chain -
OFFSET$backends
public static final long OFFSET$backends -
OFFSET$flags
public static final long OFFSET$flags -
OFFSET$dx12ShaderCompiler
public static final long OFFSET$dx12ShaderCompiler -
OFFSET$gles3MinorVersion
public static final long OFFSET$gles3MinorVersion -
OFFSET$glFenceBehaviour
public static final long OFFSET$glFenceBehaviour -
OFFSET$dxilPath
public static final long OFFSET$dxilPath -
OFFSET$dxcPath
public static final long OFFSET$dxcPath -
OFFSET$dxcMaxShaderModel
public static final long OFFSET$dxcMaxShaderModel
-
-
Constructor Details
-
WGPUInstanceExtras
Creates an instance of aWGPUInstanceExtras
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
chain
-
chain
-
chain
-
backends
-
backends
-
flags
-
flags
-
dx12ShaderCompiler
-
dx12ShaderCompiler
-
gles3MinorVersion
-
gles3MinorVersion
-
glFenceBehaviour
-
glFenceBehaviour
-
dxilPath
-
dxilPath
-
dxilPath
-
dxcPath
-
dxcPath
-
dxcPath
-
dxcMaxShaderModel
-
dxcMaxShaderModel
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-