Record Class VkIndirectCommandsTokenDataEXT
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkIndirectCommandsTokenDataEXT
- All Implemented Interfaces:
IPointer,IVkIndirectCommandsTokenDataEXT
@ValueBasedCandidate
@UnsafeConstructor
public record VkIndirectCommandsTokenDataEXT(@NotNull MemorySegment segment)
extends Record
implements IVkIndirectCommandsTokenDataEXT
Represents a pointer to a VkIndirectCommandsTokenDataEXT structure in native memory.
Structure
typedef union VkIndirectCommandsTokenDataEXT {
VkIndirectCommandsPushConstantTokenEXT const* pPushConstant;
VkIndirectCommandsVertexBufferTokenEXT const* pVertexBuffer;
VkIndirectCommandsIndexBufferTokenEXT const* pIndexBuffer;
VkIndirectCommandsExecutionSetTokenEXT const* pExecutionSet;
} VkIndirectCommandsTokenDataEXT;
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array ofVkIndirectCommandsTokenDataEXTstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final UnionLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final AddressLayoutstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkIndirectCommandsTokenDataEXT(@NotNull MemorySegment segment) Creates an instance of aVkIndirectCommandsTokenDataEXTrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, VkIndirectCommandsTokenDataEXT src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable VkIndirectCommandsExecutionSetTokenEXTpExecutionSet(int assumedCount) pExecutionSet(@Nullable IVkIndirectCommandsExecutionSetTokenEXT value) @NotNull MemorySegmentvoidpExecutionSetRaw(@NotNull MemorySegment value) @Nullable VkIndirectCommandsIndexBufferTokenEXTpIndexBuffer(int assumedCount) pIndexBuffer(@Nullable IVkIndirectCommandsIndexBufferTokenEXT value) @NotNull MemorySegmentvoidpIndexBufferRaw(@NotNull MemorySegment value) @Nullable VkIndirectCommandsPushConstantTokenEXTpPushConstant(int assumedCount) pPushConstant(@Nullable IVkIndirectCommandsPushConstantTokenEXT value) @NotNull MemorySegmentvoidpPushConstantRaw(@NotNull MemorySegment value) @Nullable VkIndirectCommandsVertexBufferTokenEXTpVertexBuffer(int assumedCount) pVertexBuffer(@Nullable IVkIndirectCommandsVertexBufferTokenEXT value) @NotNull MemorySegmentvoidpVertexBufferRaw(@NotNull MemorySegment value) @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$pPushConstant
-
PATH$pVertexBuffer
-
PATH$pIndexBuffer
-
PATH$pExecutionSet
-
LAYOUT$pPushConstant
-
LAYOUT$pVertexBuffer
-
LAYOUT$pIndexBuffer
-
LAYOUT$pExecutionSet
-
SIZE$pPushConstant
public static final long SIZE$pPushConstant -
SIZE$pVertexBuffer
public static final long SIZE$pVertexBuffer -
SIZE$pIndexBuffer
public static final long SIZE$pIndexBuffer -
SIZE$pExecutionSet
public static final long SIZE$pExecutionSet -
OFFSET$pPushConstant
public static final long OFFSET$pPushConstant -
OFFSET$pVertexBuffer
public static final long OFFSET$pVertexBuffer -
OFFSET$pIndexBuffer
public static final long OFFSET$pIndexBuffer -
OFFSET$pExecutionSet
public static final long OFFSET$pExecutionSet
-
-
Constructor Details
-
VkIndirectCommandsTokenDataEXT
Creates an instance of aVkIndirectCommandsTokenDataEXTrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
pPushConstant
public VkIndirectCommandsTokenDataEXT pPushConstant(@Nullable @Nullable IVkIndirectCommandsPushConstantTokenEXT value) -
pPushConstant
-
pPushConstant
-
pPushConstantRaw
@Pointer(target=VkIndirectCommandsPushConstantTokenEXT.class) @NotNull public @NotNull MemorySegment pPushConstantRaw() -
pPushConstantRaw
public void pPushConstantRaw(@Pointer(target=VkIndirectCommandsPushConstantTokenEXT.class) @NotNull @NotNull MemorySegment value) -
pVertexBuffer
public VkIndirectCommandsTokenDataEXT pVertexBuffer(@Nullable @Nullable IVkIndirectCommandsVertexBufferTokenEXT value) -
pVertexBuffer
-
pVertexBuffer
-
pVertexBufferRaw
@Pointer(target=VkIndirectCommandsVertexBufferTokenEXT.class) @NotNull public @NotNull MemorySegment pVertexBufferRaw() -
pVertexBufferRaw
public void pVertexBufferRaw(@Pointer(target=VkIndirectCommandsVertexBufferTokenEXT.class) @NotNull @NotNull MemorySegment value) -
pIndexBuffer
public VkIndirectCommandsTokenDataEXT pIndexBuffer(@Nullable @Nullable IVkIndirectCommandsIndexBufferTokenEXT value) -
pIndexBuffer
-
pIndexBuffer
-
pIndexBufferRaw
@Pointer(target=VkIndirectCommandsIndexBufferTokenEXT.class) @NotNull public @NotNull MemorySegment pIndexBufferRaw() -
pIndexBufferRaw
public void pIndexBufferRaw(@Pointer(target=VkIndirectCommandsIndexBufferTokenEXT.class) @NotNull @NotNull MemorySegment value) -
pExecutionSet
public VkIndirectCommandsTokenDataEXT pExecutionSet(@Nullable @Nullable IVkIndirectCommandsExecutionSetTokenEXT value) -
pExecutionSet
-
pExecutionSet
-
pExecutionSetRaw
@Pointer(target=VkIndirectCommandsExecutionSetTokenEXT.class) @NotNull public @NotNull MemorySegment pExecutionSetRaw() -
pExecutionSetRaw
public void pExecutionSetRaw(@Pointer(target=VkIndirectCommandsExecutionSetTokenEXT.class) @NotNull @NotNull MemorySegment value) -
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.
-