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 recordRepresents a pointer to / an array of null structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final AddressLayoutstatic final StructLayoutstatic final AddressLayoutstatic final AddressLayoutstatic 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 longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionWGPUBindGroupEntryExtras(@NotNull MemorySegment segment) Creates an instance of aWGPUBindGroupEntryExtrasrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WGPUBindGroupEntryExtrasstatic WGPUBindGroupEntryExtras.PtrlongbufferCount(long value) buffers()Note: the returnedWGPUBuffer.Ptrdoes not have correctWGPUBuffer.Ptr.size()property.buffers(WGPUBuffer.Ptr value) @NotNull MemorySegmentvoidbuffersRaw(@NotNull MemorySegment value) @NotNull WGPUChainedStructchain()chain(@NotNull WGPUChainedStruct value) chain(Consumer<@NotNull WGPUChainedStruct> consumer) static WGPUBindGroupEntryExtrasclone(Arena arena, WGPUBindGroupEntryExtras src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsamplerCount(long value) samplers()Note: the returnedWGPUSampler.Ptrdoes not have correctWGPUSampler.Ptr.size()property.samplers(WGPUSampler.Ptr value) @NotNull MemorySegmentvoidsamplersRaw(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.longtextureViewCount(long value) Note: the returnedWGPUTextureView.Ptrdoes not have correctWGPUTextureView.Ptr.size()property.textureViews(WGPUTextureView.Ptr value) @NotNull MemorySegmentvoidtextureViewsRaw(@NotNull MemorySegment value) final StringtoString()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 aWGPUBindGroupEntryExtrasrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
chain
-
chain
-
chain
-
buffers
Note: the returnedWGPUBuffer.Ptrdoes 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.Ptrdoes 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.Ptrdoes 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 thesegmentrecord component.
-