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 record
Represents a pointer to / an array ofVkIndirectCommandsTokenDataEXT
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final UnionLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
static final AddressLayout
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 long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkIndirectCommandsTokenDataEXT
(@NotNull MemorySegment segment) Creates an instance of aVkIndirectCommandsTokenDataEXT
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, VkIndirectCommandsTokenDataEXT src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@Nullable VkIndirectCommandsExecutionSetTokenEXT
pExecutionSet
(int assumedCount) pExecutionSet
(@Nullable IVkIndirectCommandsExecutionSetTokenEXT value) @NotNull MemorySegment
void
pExecutionSetRaw
(@NotNull MemorySegment value) @Nullable VkIndirectCommandsIndexBufferTokenEXT
pIndexBuffer
(int assumedCount) pIndexBuffer
(@Nullable IVkIndirectCommandsIndexBufferTokenEXT value) @NotNull MemorySegment
void
pIndexBufferRaw
(@NotNull MemorySegment value) @Nullable VkIndirectCommandsPushConstantTokenEXT
pPushConstant
(int assumedCount) pPushConstant
(@Nullable IVkIndirectCommandsPushConstantTokenEXT value) @NotNull MemorySegment
void
pPushConstantRaw
(@NotNull MemorySegment value) @Nullable VkIndirectCommandsVertexBufferTokenEXT
pVertexBuffer
(int assumedCount) pVertexBuffer
(@Nullable IVkIndirectCommandsVertexBufferTokenEXT value) @NotNull MemorySegment
void
pVertexBufferRaw
(@NotNull MemorySegment value) @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$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 aVkIndirectCommandsTokenDataEXT
record class.- Parameters:
segment
- the value for thesegment
record 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 thesegment
record component.
-