Record Class WGPUBindGroupEntryExtras
java.lang.Object
java.lang.Record
club.doki7.webgpu.datatype.WGPUBindGroupEntryExtras
- All Implemented Interfaces:
IPointer
,IWGPUBindGroupEntryExtras
@ValueBasedCandidate
@UnsafeConstructor
public record WGPUBindGroupEntryExtras(@NotNull MemorySegment segment)
extends Record
implements IWGPUBindGroupEntryExtras
Represents a pointer to a WGPUBindGroupEntryExtras
structure in native memory.
Structure
typedef struct WGPUBindGroupEntryExtras {
WGPUChainedStruct
chain
;
WGPUBuffer
const* buffers
;
size_t bufferCount
;
WGPUSampler
const* samplers
;
size_t samplerCount
;
WGPUTextureView
const* textureViews
;
size_t textureViewCount
;
} WGPUBindGroupEntryExtras;
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 AddressLayout
static final StructLayout
static final AddressLayout
static final AddressLayout
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 long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionWGPUBindGroupEntryExtras
(@NotNull MemorySegment segment) Creates an instance of aWGPUBindGroupEntryExtras
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WGPUBindGroupEntryExtras
static WGPUBindGroupEntryExtras.Ptr
long
bufferCount
(long value) buffers()
Note: the returnedWGPUBuffer.Ptr
does not have correctWGPUBuffer.Ptr.size()
property.buffers
(WGPUBuffer.Ptr value) @NotNull MemorySegment
void
buffersRaw
(@NotNull MemorySegment value) @NotNull WGPUChainedStruct
chain()
chain
(@NotNull WGPUChainedStruct value) chain
(Consumer<@NotNull WGPUChainedStruct> consumer) static WGPUBindGroupEntryExtras
clone
(Arena arena, WGPUBindGroupEntryExtras src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
samplerCount
(long value) samplers()
Note: the returnedWGPUSampler.Ptr
does not have correctWGPUSampler.Ptr.size()
property.samplers
(WGPUSampler.Ptr value) @NotNull MemorySegment
void
samplersRaw
(@NotNull MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.long
textureViewCount
(long value) Note: the returnedWGPUTextureView.Ptr
does not have correctWGPUTextureView.Ptr.size()
property.textureViews
(WGPUTextureView.Ptr value) @NotNull MemorySegment
void
textureViewsRaw
(@NotNull MemorySegment value) final String
toString()
Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$chain
-
PATH$buffers
-
PATH$bufferCount
-
PATH$samplers
-
PATH$samplerCount
-
PATH$textureViews
-
PATH$textureViewCount
-
LAYOUT$chain
-
LAYOUT$buffers
-
LAYOUT$samplers
-
LAYOUT$textureViews
-
SIZE$chain
public static final long SIZE$chain -
SIZE$buffers
public static final long SIZE$buffers -
SIZE$bufferCount
public static final long SIZE$bufferCount -
SIZE$samplers
public static final long SIZE$samplers -
SIZE$samplerCount
public static final long SIZE$samplerCount -
SIZE$textureViews
public static final long SIZE$textureViews -
SIZE$textureViewCount
public static final long SIZE$textureViewCount -
OFFSET$chain
public static final long OFFSET$chain -
OFFSET$buffers
public static final long OFFSET$buffers -
OFFSET$bufferCount
public static final long OFFSET$bufferCount -
OFFSET$samplers
public static final long OFFSET$samplers -
OFFSET$samplerCount
public static final long OFFSET$samplerCount -
OFFSET$textureViews
public static final long OFFSET$textureViews -
OFFSET$textureViewCount
public static final long OFFSET$textureViewCount
-
-
Constructor Details
-
WGPUBindGroupEntryExtras
Creates an instance of aWGPUBindGroupEntryExtras
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
chain
-
chain
-
chain
-
buffers
Note: the returnedWGPUBuffer.Ptr
does not have correctWGPUBuffer.Ptr.size()
property. It's up to user to track the size of the buffer, and useWGPUBuffer.Ptr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
buffers
-
buffersRaw
-
buffersRaw
-
bufferCount
-
bufferCount
-
samplers
Note: the returnedWGPUSampler.Ptr
does not have correctWGPUSampler.Ptr.size()
property. It's up to user to track the size of the buffer, and useWGPUSampler.Ptr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
samplers
-
samplersRaw
-
samplersRaw
-
samplerCount
-
samplerCount
-
textureViews
Note: the returnedWGPUTextureView.Ptr
does not have correctWGPUTextureView.Ptr.size()
property. It's up to user to track the size of the buffer, and useWGPUTextureView.Ptr.reinterpret(long)
to set the size before actually reading from or writing to the buffer. -
textureViews
-
textureViewsRaw
-
textureViewsRaw
public void textureViewsRaw(@Pointer(target=WGPUTextureView.class) @NotNull @NotNull MemorySegment value) -
textureViewCount
-
textureViewCount
-
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.
-