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 recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfLongstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final StructLayoutstatic final StructLayoutstatic final ValueLayout.OfLongstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionWGPUInstanceExtras(@NotNull MemorySegment segment) Creates an instance of aWGPUInstanceExtrasrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WGPUInstanceExtrasstatic WGPUInstanceExtras.Ptrlongbackends()backends(long value) @NotNull WGPUChainedStructchain()chain(@NotNull WGPUChainedStruct value) chain(Consumer<@NotNull WGPUChainedStruct> consumer) static WGPUInstanceExtrasclone(Arena arena, WGPUInstanceExtras src) intdx12ShaderCompiler(int value) intdxcMaxShaderModel(int value) @NotNull WGPUStringViewdxcPath()dxcPath(@NotNull WGPUStringView value) dxcPath(Consumer<@NotNull WGPUStringView> consumer) @NotNull WGPUStringViewdxilPath()dxilPath(@NotNull WGPUStringView value) dxilPath(Consumer<@NotNull WGPUStringView> consumer) final booleanIndicates whether some other object is "equal to" this one.longflags()flags(long value) intgles3MinorVersion(int value) intglFenceBehaviour(int value) final inthashCode()Returns a hash code value for this object.@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()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 aWGPUInstanceExtrasrecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-