Class VkGeometryTrianglesNV
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkGeometryTrianglesNV
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkGeometryTrianglesNV.Buffer
Layout
struct VkGeometryTrianglesNV {
(int) VkStructureType sType;
const void* pNext;
(uint64_t) VkBuffer vertexData;
(uint64_t) VkDeviceSize vertexOffset;
uint32_t vertexCount;
(uint64_t) VkDeviceSize vertexStride;
(int) VkFormat vertexFormat;
(uint64_t) VkBuffer indexData;
(uint64_t) VkDeviceSize indexOffset;
uint32_t indexCount;
(int) VkIndexType indexType;
(uint64_t) VkBuffer transformData;
(uint64_t) VkDeviceSize transformOffset;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkGeometryTrianglesNV
.static final MemoryLayout
The memory layout ofindexCount
.static final MemoryLayout
The memory layout ofindexData
.static final MemoryLayout
The memory layout ofindexOffset
.static final MemoryLayout
The memory layout ofindexType
.static final MemoryLayout
The memory layout ofpNext
.static final MemoryLayout
The memory layout ofsType
.static final MemoryLayout
The memory layout oftransformData
.static final MemoryLayout
The memory layout oftransformOffset
.static final MemoryLayout
The memory layout ofvertexCount
.static final MemoryLayout
The memory layout ofvertexData
.static final MemoryLayout
The memory layout ofvertexFormat
.static final MemoryLayout
The memory layout ofvertexOffset
.static final MemoryLayout
The memory layout ofvertexStride
.static final long
The byte offset ofindexCount
.static final long
The byte offset ofindexData
.static final long
The byte offset ofindexOffset
.static final long
The byte offset ofindexType
.static final long
The byte offset ofpNext
.static final long
The byte offset ofsType
.static final long
The byte offset oftransformData
.static final long
The byte offset oftransformOffset
.static final long
The byte offset ofvertexCount
.static final long
The byte offset ofvertexData
.static final long
The byte offset ofvertexFormat
.static final long
The byte offset ofvertexOffset
.static final long
The byte offset ofvertexStride
.static final VarHandle
static final VarHandle
static final VarHandle
TheVarHandle
ofindexOffset
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
static final VarHandle
static final VarHandle
TheVarHandle
oftransformData
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
oftransformOffset
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofvertexCount
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
static final VarHandle
TheVarHandle
ofvertexFormat
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofvertexOffset
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofvertexStride
of type(MemorySegment base, long baseOffset, long index)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionVkGeometryTrianglesNV
(MemorySegment segment) CreatesVkGeometryTrianglesNV
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkGeometryTrianglesNV
alloc
(SegmentAllocator allocator) Allocates aVkGeometryTrianglesNV
with the given segment allocator.static VkGeometryTrianglesNV.Buffer
alloc
(SegmentAllocator allocator, long count) Allocates aVkGeometryTrianglesNV
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.Copies from the given source.int
ReturnsindexCount
.indexCount
(int value) SetsindexCount
with the given value.static int
indexCount
(MemorySegment segment, long index) ReturnsindexCount
at the given index.static void
indexCount
(MemorySegment segment, long index, int value) SetsindexCount
with the given value at the given index.long
ReturnsindexData
.indexData
(long value) SetsindexData
with the given value.static long
indexData
(MemorySegment segment, long index) ReturnsindexData
at the given index.static void
indexData
(MemorySegment segment, long index, long value) SetsindexData
with the given value at the given index.long
ReturnsindexOffset
.indexOffset
(long value) SetsindexOffset
with the given value.static long
indexOffset
(MemorySegment segment, long index) ReturnsindexOffset
at the given index.static void
indexOffset
(MemorySegment segment, long index, long value) SetsindexOffset
with the given value at the given index.int
ReturnsindexType
.indexType
(int value) SetsindexType
with the given value.static int
indexType
(MemorySegment segment, long index) ReturnsindexType
at the given index.static void
indexType
(MemorySegment segment, long index, int value) SetsindexType
with the given value at the given index.static VkGeometryTrianglesNV.Buffer
of
(MemorySegment segment) CreatesVkGeometryTrianglesNV
with the given segment.static VkGeometryTrianglesNV
ofNative
(MemorySegment segment) CreatesVkGeometryTrianglesNV
with the given segment.static VkGeometryTrianglesNV.Buffer
ofNative
(MemorySegment segment, long count) CreatesVkGeometryTrianglesNV
with the given segment.pNext()
ReturnspNext
.pNext
(MemorySegment value) SetspNext
with the given value.static MemorySegment
pNext
(MemorySegment segment, long index) ReturnspNext
at the given index.static void
pNext
(MemorySegment segment, long index, MemorySegment value) SetspNext
with the given value at the given index.int
sType()
ReturnssType
.sType
(int value) SetssType
with the given value.static int
sType
(MemorySegment segment, long index) ReturnssType
at the given index.static void
sType
(MemorySegment segment, long index, int value) SetssType
with the given value at the given index.long
ReturnstransformData
.transformData
(long value) SetstransformData
with the given value.static long
transformData
(MemorySegment segment, long index) ReturnstransformData
at the given index.static void
transformData
(MemorySegment segment, long index, long value) SetstransformData
with the given value at the given index.long
ReturnstransformOffset
.transformOffset
(long value) SetstransformOffset
with the given value.static long
transformOffset
(MemorySegment segment, long index) ReturnstransformOffset
at the given index.static void
transformOffset
(MemorySegment segment, long index, long value) SetstransformOffset
with the given value at the given index.int
ReturnsvertexCount
.vertexCount
(int value) SetsvertexCount
with the given value.static int
vertexCount
(MemorySegment segment, long index) ReturnsvertexCount
at the given index.static void
vertexCount
(MemorySegment segment, long index, int value) SetsvertexCount
with the given value at the given index.long
ReturnsvertexData
.vertexData
(long value) SetsvertexData
with the given value.static long
vertexData
(MemorySegment segment, long index) ReturnsvertexData
at the given index.static void
vertexData
(MemorySegment segment, long index, long value) SetsvertexData
with the given value at the given index.int
ReturnsvertexFormat
.vertexFormat
(int value) SetsvertexFormat
with the given value.static int
vertexFormat
(MemorySegment segment, long index) ReturnsvertexFormat
at the given index.static void
vertexFormat
(MemorySegment segment, long index, int value) SetsvertexFormat
with the given value at the given index.long
ReturnsvertexOffset
.vertexOffset
(long value) SetsvertexOffset
with the given value.static long
vertexOffset
(MemorySegment segment, long index) ReturnsvertexOffset
at the given index.static void
vertexOffset
(MemorySegment segment, long index, long value) SetsvertexOffset
with the given value at the given index.long
ReturnsvertexStride
.vertexStride
(long value) SetsvertexStride
with the given value.static long
vertexStride
(MemorySegment segment, long index) ReturnsvertexStride
at the given index.static void
vertexStride
(MemorySegment segment, long index, long value) SetsvertexStride
with the given value at the given index.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkGeometryTrianglesNV
. -
OFFSET_sType
public static final long OFFSET_sTypeThe byte offset ofsType
. -
LAYOUT_sType
The memory layout ofsType
. -
VH_sType
-
OFFSET_pNext
public static final long OFFSET_pNextThe byte offset ofpNext
. -
LAYOUT_pNext
The memory layout ofpNext
. -
VH_pNext
-
OFFSET_vertexData
public static final long OFFSET_vertexDataThe byte offset ofvertexData
. -
LAYOUT_vertexData
The memory layout ofvertexData
. -
VH_vertexData
-
OFFSET_vertexOffset
public static final long OFFSET_vertexOffsetThe byte offset ofvertexOffset
. -
LAYOUT_vertexOffset
The memory layout ofvertexOffset
. -
VH_vertexOffset
-
OFFSET_vertexCount
public static final long OFFSET_vertexCountThe byte offset ofvertexCount
. -
LAYOUT_vertexCount
The memory layout ofvertexCount
. -
VH_vertexCount
-
OFFSET_vertexStride
public static final long OFFSET_vertexStrideThe byte offset ofvertexStride
. -
LAYOUT_vertexStride
The memory layout ofvertexStride
. -
VH_vertexStride
-
OFFSET_vertexFormat
public static final long OFFSET_vertexFormatThe byte offset ofvertexFormat
. -
LAYOUT_vertexFormat
The memory layout ofvertexFormat
. -
VH_vertexFormat
-
OFFSET_indexData
public static final long OFFSET_indexDataThe byte offset ofindexData
. -
LAYOUT_indexData
The memory layout ofindexData
. -
VH_indexData
-
OFFSET_indexOffset
public static final long OFFSET_indexOffsetThe byte offset ofindexOffset
. -
LAYOUT_indexOffset
The memory layout ofindexOffset
. -
VH_indexOffset
-
OFFSET_indexCount
public static final long OFFSET_indexCountThe byte offset ofindexCount
. -
LAYOUT_indexCount
The memory layout ofindexCount
. -
VH_indexCount
-
OFFSET_indexType
public static final long OFFSET_indexTypeThe byte offset ofindexType
. -
LAYOUT_indexType
The memory layout ofindexType
. -
VH_indexType
-
OFFSET_transformData
public static final long OFFSET_transformDataThe byte offset oftransformData
. -
LAYOUT_transformData
The memory layout oftransformData
. -
VH_transformData
-
OFFSET_transformOffset
public static final long OFFSET_transformOffsetThe byte offset oftransformOffset
. -
LAYOUT_transformOffset
The memory layout oftransformOffset
. -
VH_transformOffset
-
-
Constructor Details
-
VkGeometryTrianglesNV
CreatesVkGeometryTrianglesNV
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkGeometryTrianglesNV
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkGeometryTrianglesNV
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkGeometryTrianglesNV
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segmentcount
- the count of the buffer- Returns:
- the created instance or
null
if the segment isNULL
-
alloc
Allocates aVkGeometryTrianglesNV
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkGeometryTrianglesNV
-
alloc
Allocates aVkGeometryTrianglesNV
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkGeometryTrianglesNV
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
Converts this instance to a buffer.- Returns:
- the buffer
-
sType
ReturnssType
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
sType
at the given index
-
sType
public int sType()ReturnssType
.- Returns:
sType
-
sType
SetssType
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
sType
SetssType
with the given value.- Parameters:
value
- the value- Returns:
this
-
pNext
ReturnspNext
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
pNext
at the given index
-
pNext
-
pNext
SetspNext
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
pNext
SetspNext
with the given value.- Parameters:
value
- the value- Returns:
this
-
vertexData
ReturnsvertexData
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
vertexData
at the given index
-
vertexData
public long vertexData()ReturnsvertexData
.- Returns:
vertexData
-
vertexData
SetsvertexData
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
vertexData
SetsvertexData
with the given value.- Parameters:
value
- the value- Returns:
this
-
vertexOffset
ReturnsvertexOffset
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
vertexOffset
at the given index
-
vertexOffset
public long vertexOffset()ReturnsvertexOffset
.- Returns:
vertexOffset
-
vertexOffset
SetsvertexOffset
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
vertexOffset
SetsvertexOffset
with the given value.- Parameters:
value
- the value- Returns:
this
-
vertexCount
ReturnsvertexCount
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
vertexCount
at the given index
-
vertexCount
public int vertexCount()ReturnsvertexCount
.- Returns:
vertexCount
-
vertexCount
SetsvertexCount
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
vertexCount
SetsvertexCount
with the given value.- Parameters:
value
- the value- Returns:
this
-
vertexStride
ReturnsvertexStride
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
vertexStride
at the given index
-
vertexStride
public long vertexStride()ReturnsvertexStride
.- Returns:
vertexStride
-
vertexStride
SetsvertexStride
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
vertexStride
SetsvertexStride
with the given value.- Parameters:
value
- the value- Returns:
this
-
vertexFormat
ReturnsvertexFormat
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
vertexFormat
at the given index
-
vertexFormat
public int vertexFormat()ReturnsvertexFormat
.- Returns:
vertexFormat
-
vertexFormat
SetsvertexFormat
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
vertexFormat
SetsvertexFormat
with the given value.- Parameters:
value
- the value- Returns:
this
-
indexData
ReturnsindexData
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
indexData
at the given index
-
indexData
public long indexData()ReturnsindexData
.- Returns:
indexData
-
indexData
SetsindexData
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
indexData
SetsindexData
with the given value.- Parameters:
value
- the value- Returns:
this
-
indexOffset
ReturnsindexOffset
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
indexOffset
at the given index
-
indexOffset
public long indexOffset()ReturnsindexOffset
.- Returns:
indexOffset
-
indexOffset
SetsindexOffset
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
indexOffset
SetsindexOffset
with the given value.- Parameters:
value
- the value- Returns:
this
-
indexCount
ReturnsindexCount
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
indexCount
at the given index
-
indexCount
public int indexCount()ReturnsindexCount
.- Returns:
indexCount
-
indexCount
SetsindexCount
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
indexCount
SetsindexCount
with the given value.- Parameters:
value
- the value- Returns:
this
-
indexType
ReturnsindexType
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
indexType
at the given index
-
indexType
public int indexType()ReturnsindexType
.- Returns:
indexType
-
indexType
SetsindexType
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
indexType
SetsindexType
with the given value.- Parameters:
value
- the value- Returns:
this
-
transformData
ReturnstransformData
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
transformData
at the given index
-
transformData
public long transformData()ReturnstransformData
.- Returns:
transformData
-
transformData
SetstransformData
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
transformData
SetstransformData
with the given value.- Parameters:
value
- the value- Returns:
this
-
transformOffset
ReturnstransformOffset
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
transformOffset
at the given index
-
transformOffset
public long transformOffset()ReturnstransformOffset
.- Returns:
transformOffset
-
transformOffset
SetstransformOffset
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
transformOffset
SetstransformOffset
with the given value.- Parameters:
value
- the value- Returns:
this
-