Record Class VkGeometryTrianglesNV
- All Implemented Interfaces:
IPointer
,IVkGeometryTrianglesNV
Represents a pointer to a VkGeometryTrianglesNV
structure in native memory.
Structure
typedef struct VkGeometryTrianglesNV {
VkStructureType
sType
;
void const* pNext
; // optional
VkBuffer
vertexData
; // optional
VkDeviceSize vertexOffset
;
uint32_t vertexCount
;
VkDeviceSize vertexStride
;
VkFormat
vertexFormat
;
VkBuffer
indexData
; // optional
VkDeviceSize indexOffset
;
uint32_t indexCount
;
VkIndexType
indexType
;
VkBuffer
transformData
; // optional
VkDeviceSize transformOffset
;
} VkGeometryTrianglesNV;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_GEOMETRY_TRIANGLES_NV
The allocate
(allocate(Arena)
, allocate(Arena, long)
)
functions will automatically initialize these fields. Also, you may call autoInit()
to initialize these fields manually for non-allocated instances.
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 ofVkGeometryTrianglesNV
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final AddressLayout
static final ValueLayout.OfLong
static final ValueLayout.OfInt
static final AddressLayout
static final ValueLayout.OfInt
static final AddressLayout
static final ValueLayout.OfLong
static final ValueLayout.OfInt
static final AddressLayout
static final ValueLayout.OfInt
static final ValueLayout.OfLong
static final ValueLayout.OfLong
static final long
static final long
static final long
static final long
static final long
static final long
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 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
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkGeometryTrianglesNV
(@NotNull MemorySegment segment) Creates an instance of aVkGeometryTrianglesNV
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkGeometryTrianglesNV
static VkGeometryTrianglesNV.Ptr
void
autoInit()
static VkGeometryTrianglesNV
clone
(Arena arena, VkGeometryTrianglesNV src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
indexCount
(int value) @Nullable VkBuffer
long
indexOffset
(long value) int
indexType
(int value) pNext()
void
pNext
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
sType()
sType
(int value) final String
toString()
Returns a string representation of this record class.@Nullable VkBuffer
transformData
(@Nullable VkBuffer value) long
transformOffset
(long value) int
vertexCount
(int value) @Nullable VkBuffer
vertexData
(@Nullable VkBuffer value) int
vertexFormat
(int value) long
vertexOffset
(long value) long
vertexStride
(long value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$vertexData
-
PATH$vertexOffset
-
PATH$vertexCount
-
PATH$vertexStride
-
PATH$vertexFormat
-
PATH$indexData
-
PATH$indexOffset
-
PATH$indexCount
-
PATH$indexType
-
PATH$transformData
-
PATH$transformOffset
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$vertexData
-
LAYOUT$vertexOffset
-
LAYOUT$vertexCount
-
LAYOUT$vertexStride
-
LAYOUT$vertexFormat
-
LAYOUT$indexData
-
LAYOUT$indexOffset
-
LAYOUT$indexCount
-
LAYOUT$indexType
-
LAYOUT$transformData
-
LAYOUT$transformOffset
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$vertexData
public static final long SIZE$vertexData -
SIZE$vertexOffset
public static final long SIZE$vertexOffset -
SIZE$vertexCount
public static final long SIZE$vertexCount -
SIZE$vertexStride
public static final long SIZE$vertexStride -
SIZE$vertexFormat
public static final long SIZE$vertexFormat -
SIZE$indexData
public static final long SIZE$indexData -
SIZE$indexOffset
public static final long SIZE$indexOffset -
SIZE$indexCount
public static final long SIZE$indexCount -
SIZE$indexType
public static final long SIZE$indexType -
SIZE$transformData
public static final long SIZE$transformData -
SIZE$transformOffset
public static final long SIZE$transformOffset -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$vertexData
public static final long OFFSET$vertexData -
OFFSET$vertexOffset
public static final long OFFSET$vertexOffset -
OFFSET$vertexCount
public static final long OFFSET$vertexCount -
OFFSET$vertexStride
public static final long OFFSET$vertexStride -
OFFSET$vertexFormat
public static final long OFFSET$vertexFormat -
OFFSET$indexData
public static final long OFFSET$indexData -
OFFSET$indexOffset
public static final long OFFSET$indexOffset -
OFFSET$indexCount
public static final long OFFSET$indexCount -
OFFSET$indexType
public static final long OFFSET$indexType -
OFFSET$transformData
public static final long OFFSET$transformData -
OFFSET$transformOffset
public static final long OFFSET$transformOffset
-
-
Constructor Details
-
VkGeometryTrianglesNV
Creates an instance of aVkGeometryTrianglesNV
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
pNext
-
vertexData
-
vertexData
-
vertexOffset
-
vertexOffset
-
vertexCount
-
vertexCount
-
vertexStride
-
vertexStride
-
vertexFormat
-
vertexFormat
-
indexData
-
indexData
-
indexOffset
-
indexOffset
-
indexCount
-
indexCount
-
indexType
-
indexType
-
transformData
-
transformData
-
transformOffset
-
transformOffset
-
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.
-