Class VkGeometryTrianglesNV
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkGeometryTrianglesNV
- All Implemented Interfaces:
Addressable
Represents VkGeometryTrianglesNV.
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;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkGeometryTrianglesNV.static final MemoryLayoutThe memory layout ofindexCount.static final MemoryLayoutThe memory layout ofindexData.static final MemoryLayoutThe memory layout ofindexOffset.static final MemoryLayoutThe memory layout ofindexType.static final MemoryLayoutThe memory layout ofpNext.static final MemoryLayoutThe memory layout ofsType.static final MemoryLayoutThe memory layout oftransformData.static final MemoryLayoutThe memory layout oftransformOffset.static final MemoryLayoutThe memory layout ofvertexCount.static final MemoryLayoutThe memory layout ofvertexData.static final MemoryLayoutThe memory layout ofvertexFormat.static final MemoryLayoutThe memory layout ofvertexOffset.static final MemoryLayoutThe memory layout ofvertexStride.static final longThe byte offset ofindexCount.static final longThe byte offset ofindexData.static final longThe byte offset ofindexOffset.static final longThe byte offset ofindexType.static final longThe byte offset ofpNext.static final longThe byte offset ofsType.static final longThe byte offset oftransformData.static final longThe byte offset oftransformOffset.static final longThe byte offset ofvertexCount.static final longThe byte offset ofvertexData.static final longThe byte offset ofvertexFormat.static final longThe byte offset ofvertexOffset.static final longThe byte offset ofvertexStride.static final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofindexOffsetof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleoftransformDataof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleoftransformOffsetof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofvertexCountof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandlestatic final VarHandleTheVarHandleofvertexFormatof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofvertexOffsetof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofvertexStrideof type(MemorySegment base, long baseOffset, long index)MemorySegment. -
Constructor Summary
ConstructorsConstructorDescriptionVkGeometryTrianglesNV(MemorySegment segment, long elementCount) CreatesVkGeometryTrianglesNVwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkGeometryTrianglesNValloc(SegmentAllocator allocator) Allocates aVkGeometryTrianglesNVwith the given segment allocator.static VkGeometryTrianglesNValloc(SegmentAllocator allocator, long count) Allocates aVkGeometryTrianglesNVwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkGeometryTrianglesNV.asSlice(long index, long count) Creates a slice ofVkGeometryTrianglesNV.at(long index, Consumer<VkGeometryTrianglesNV> func) VisitsVkGeometryTrianglesNVbuffer at the given index.Copies from the given source.intReturnsindexCount.indexCount(int value) SetsindexCountwith the given value.static intindexCount(MemorySegment segment, long index) ReturnsindexCountat the given index.static voidindexCount(MemorySegment segment, long index, int value) SetsindexCountwith the given value at the given index.intindexCountAt(long index) ReturnsindexCountat the given index.indexCountAt(long index, int value) SetsindexCountwith the given value at the given index.longReturnsindexData.indexData(long value) SetsindexDatawith the given value.static longindexData(MemorySegment segment, long index) ReturnsindexDataat the given index.static voidindexData(MemorySegment segment, long index, long value) SetsindexDatawith the given value at the given index.longindexDataAt(long index) ReturnsindexDataat the given index.indexDataAt(long index, long value) SetsindexDatawith the given value at the given index.longReturnsindexOffset.indexOffset(long value) SetsindexOffsetwith the given value.static longindexOffset(MemorySegment segment, long index) ReturnsindexOffsetat the given index.static voidindexOffset(MemorySegment segment, long index, long value) SetsindexOffsetwith the given value at the given index.longindexOffsetAt(long index) ReturnsindexOffsetat the given index.indexOffsetAt(long index, long value) SetsindexOffsetwith the given value at the given index.intReturnsindexType.indexType(int value) SetsindexTypewith the given value.static intindexType(MemorySegment segment, long index) ReturnsindexTypeat the given index.static voidindexType(MemorySegment segment, long index, int value) SetsindexTypewith the given value at the given index.intindexTypeAt(long index) ReturnsindexTypeat the given index.indexTypeAt(long index, int value) SetsindexTypewith the given value at the given index.static VkGeometryTrianglesNVof(MemorySegment segment) CreatesVkGeometryTrianglesNVwith the given segment.static VkGeometryTrianglesNVofNative(MemorySegment segment) CreatesVkGeometryTrianglesNVwith the given segment.static VkGeometryTrianglesNVofNative(MemorySegment segment, long count) CreatesVkGeometryTrianglesNVwith the given segment.pNext()ReturnspNext.pNext(MemorySegment value) SetspNextwith the given value.static MemorySegmentpNext(MemorySegment segment, long index) ReturnspNextat the given index.static voidpNext(MemorySegment segment, long index, MemorySegment value) SetspNextwith the given value at the given index.pNextAt(long index) ReturnspNextat the given index.pNextAt(long index, MemorySegment value) SetspNextwith the given value at the given index.reinterpret(long count) Reinterprets this buffer with the given count.intsType()ReturnssType.sType(int value) SetssTypewith the given value.static intsType(MemorySegment segment, long index) ReturnssTypeat the given index.static voidsType(MemorySegment segment, long index, int value) SetssTypewith the given value at the given index.intsTypeAt(long index) ReturnssTypeat the given index.sTypeAt(long index, int value) SetssTypewith the given value at the given index.longReturnstransformData.transformData(long value) SetstransformDatawith the given value.static longtransformData(MemorySegment segment, long index) ReturnstransformDataat the given index.static voidtransformData(MemorySegment segment, long index, long value) SetstransformDatawith the given value at the given index.longtransformDataAt(long index) ReturnstransformDataat the given index.transformDataAt(long index, long value) SetstransformDatawith the given value at the given index.longReturnstransformOffset.transformOffset(long value) SetstransformOffsetwith the given value.static longtransformOffset(MemorySegment segment, long index) ReturnstransformOffsetat the given index.static voidtransformOffset(MemorySegment segment, long index, long value) SetstransformOffsetwith the given value at the given index.longtransformOffsetAt(long index) ReturnstransformOffsetat the given index.transformOffsetAt(long index, long value) SetstransformOffsetwith the given value at the given index.intReturnsvertexCount.vertexCount(int value) SetsvertexCountwith the given value.static intvertexCount(MemorySegment segment, long index) ReturnsvertexCountat the given index.static voidvertexCount(MemorySegment segment, long index, int value) SetsvertexCountwith the given value at the given index.intvertexCountAt(long index) ReturnsvertexCountat the given index.vertexCountAt(long index, int value) SetsvertexCountwith the given value at the given index.longReturnsvertexData.vertexData(long value) SetsvertexDatawith the given value.static longvertexData(MemorySegment segment, long index) ReturnsvertexDataat the given index.static voidvertexData(MemorySegment segment, long index, long value) SetsvertexDatawith the given value at the given index.longvertexDataAt(long index) ReturnsvertexDataat the given index.vertexDataAt(long index, long value) SetsvertexDatawith the given value at the given index.intReturnsvertexFormat.vertexFormat(int value) SetsvertexFormatwith the given value.static intvertexFormat(MemorySegment segment, long index) ReturnsvertexFormatat the given index.static voidvertexFormat(MemorySegment segment, long index, int value) SetsvertexFormatwith the given value at the given index.intvertexFormatAt(long index) ReturnsvertexFormatat the given index.vertexFormatAt(long index, int value) SetsvertexFormatwith the given value at the given index.longReturnsvertexOffset.vertexOffset(long value) SetsvertexOffsetwith the given value.static longvertexOffset(MemorySegment segment, long index) ReturnsvertexOffsetat the given index.static voidvertexOffset(MemorySegment segment, long index, long value) SetsvertexOffsetwith the given value at the given index.longvertexOffsetAt(long index) ReturnsvertexOffsetat the given index.vertexOffsetAt(long index, long value) SetsvertexOffsetwith the given value at the given index.longReturnsvertexStride.vertexStride(long value) SetsvertexStridewith the given value.static longvertexStride(MemorySegment segment, long index) ReturnsvertexStrideat the given index.static voidvertexStride(MemorySegment segment, long index, long value) SetsvertexStridewith the given value at the given index.longvertexStrideAt(long index) ReturnsvertexStrideat the given index.vertexStrideAt(long index, long value) SetsvertexStridewith the given value at the given index.Methods inherited from class 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
CreatesVkGeometryTrianglesNVwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkGeometryTrianglesNVwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkGeometryTrianglesNVwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkGeometryTrianglesNVwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segmentcount- the count of the buffer- Returns:
- the created instance or
nullif the segment isNULL
-
alloc
Allocates aVkGeometryTrianglesNVwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkGeometryTrianglesNV
-
alloc
Allocates aVkGeometryTrianglesNVwith 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
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count- the new count- Returns:
- the reinterpreted buffer
-
sType
ReturnssTypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
sTypeat the given index
-
sType
public int sType()ReturnssType.- Returns:
sType
-
sType
SetssTypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
sType
SetssTypewith the given value.- Parameters:
value- the value- Returns:
this
-
pNext
ReturnspNextat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pNextat the given index
-
pNext
-
pNext
SetspNextwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pNext
SetspNextwith the given value.- Parameters:
value- the value- Returns:
this
-
vertexData
ReturnsvertexDataat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
vertexDataat the given index
-
vertexData
public long vertexData()ReturnsvertexData.- Returns:
vertexData
-
vertexData
SetsvertexDatawith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
vertexData
SetsvertexDatawith the given value.- Parameters:
value- the value- Returns:
this
-
vertexOffset
ReturnsvertexOffsetat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
vertexOffsetat the given index
-
vertexOffset
public long vertexOffset()ReturnsvertexOffset.- Returns:
vertexOffset
-
vertexOffset
SetsvertexOffsetwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
vertexOffset
SetsvertexOffsetwith the given value.- Parameters:
value- the value- Returns:
this
-
vertexCount
ReturnsvertexCountat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
vertexCountat the given index
-
vertexCount
public int vertexCount()ReturnsvertexCount.- Returns:
vertexCount
-
vertexCount
SetsvertexCountwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
vertexCount
SetsvertexCountwith the given value.- Parameters:
value- the value- Returns:
this
-
vertexStride
ReturnsvertexStrideat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
vertexStrideat the given index
-
vertexStride
public long vertexStride()ReturnsvertexStride.- Returns:
vertexStride
-
vertexStride
SetsvertexStridewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
vertexStride
SetsvertexStridewith the given value.- Parameters:
value- the value- Returns:
this
-
vertexFormat
ReturnsvertexFormatat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
vertexFormatat the given index
-
vertexFormat
public int vertexFormat()ReturnsvertexFormat.- Returns:
vertexFormat
-
vertexFormat
SetsvertexFormatwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
vertexFormat
SetsvertexFormatwith the given value.- Parameters:
value- the value- Returns:
this
-
indexData
ReturnsindexDataat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
indexDataat the given index
-
indexData
public long indexData()ReturnsindexData.- Returns:
indexData
-
indexData
SetsindexDatawith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
indexData
SetsindexDatawith the given value.- Parameters:
value- the value- Returns:
this
-
indexOffset
ReturnsindexOffsetat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
indexOffsetat the given index
-
indexOffset
public long indexOffset()ReturnsindexOffset.- Returns:
indexOffset
-
indexOffset
SetsindexOffsetwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
indexOffset
SetsindexOffsetwith the given value.- Parameters:
value- the value- Returns:
this
-
indexCount
ReturnsindexCountat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
indexCountat the given index
-
indexCount
public int indexCount()ReturnsindexCount.- Returns:
indexCount
-
indexCount
SetsindexCountwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
indexCount
SetsindexCountwith the given value.- Parameters:
value- the value- Returns:
this
-
indexType
ReturnsindexTypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
indexTypeat the given index
-
indexType
public int indexType()ReturnsindexType.- Returns:
indexType
-
indexType
SetsindexTypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
indexType
SetsindexTypewith the given value.- Parameters:
value- the value- Returns:
this
-
transformData
ReturnstransformDataat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
transformDataat the given index
-
transformData
public long transformData()ReturnstransformData.- Returns:
transformData
-
transformData
SetstransformDatawith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
transformData
SetstransformDatawith the given value.- Parameters:
value- the value- Returns:
this
-
transformOffset
ReturnstransformOffsetat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
transformOffsetat the given index
-
transformOffset
public long transformOffset()ReturnstransformOffset.- Returns:
transformOffset
-
transformOffset
SetstransformOffsetwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
transformOffset
SetstransformOffsetwith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkGeometryTrianglesNV.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkGeometryTrianglesNV
-
asSlice
Creates a slice ofVkGeometryTrianglesNV.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkGeometryTrianglesNV
-
at
VisitsVkGeometryTrianglesNVbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
sTypeAt
public int sTypeAt(long index) ReturnssTypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
sTypeat the given index
-
sTypeAt
SetssTypewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pNextAt
ReturnspNextat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pNextat the given index
-
pNextAt
SetspNextwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
vertexDataAt
public long vertexDataAt(long index) ReturnsvertexDataat the given index.- Parameters:
index- the index of the struct buffer- Returns:
vertexDataat the given index
-
vertexDataAt
SetsvertexDatawith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
vertexOffsetAt
public long vertexOffsetAt(long index) ReturnsvertexOffsetat the given index.- Parameters:
index- the index of the struct buffer- Returns:
vertexOffsetat the given index
-
vertexOffsetAt
SetsvertexOffsetwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
vertexCountAt
public int vertexCountAt(long index) ReturnsvertexCountat the given index.- Parameters:
index- the index of the struct buffer- Returns:
vertexCountat the given index
-
vertexCountAt
SetsvertexCountwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
vertexStrideAt
public long vertexStrideAt(long index) ReturnsvertexStrideat the given index.- Parameters:
index- the index of the struct buffer- Returns:
vertexStrideat the given index
-
vertexStrideAt
SetsvertexStridewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
vertexFormatAt
public int vertexFormatAt(long index) ReturnsvertexFormatat the given index.- Parameters:
index- the index of the struct buffer- Returns:
vertexFormatat the given index
-
vertexFormatAt
SetsvertexFormatwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
indexDataAt
public long indexDataAt(long index) ReturnsindexDataat the given index.- Parameters:
index- the index of the struct buffer- Returns:
indexDataat the given index
-
indexDataAt
SetsindexDatawith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
indexOffsetAt
public long indexOffsetAt(long index) ReturnsindexOffsetat the given index.- Parameters:
index- the index of the struct buffer- Returns:
indexOffsetat the given index
-
indexOffsetAt
SetsindexOffsetwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
indexCountAt
public int indexCountAt(long index) ReturnsindexCountat the given index.- Parameters:
index- the index of the struct buffer- Returns:
indexCountat the given index
-
indexCountAt
SetsindexCountwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
indexTypeAt
public int indexTypeAt(long index) ReturnsindexTypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
indexTypeat the given index
-
indexTypeAt
SetsindexTypewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
transformDataAt
public long transformDataAt(long index) ReturnstransformDataat the given index.- Parameters:
index- the index of the struct buffer- Returns:
transformDataat the given index
-
transformDataAt
SetstransformDatawith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
transformOffsetAt
public long transformOffsetAt(long index) ReturnstransformOffsetat the given index.- Parameters:
index- the index of the struct buffer- Returns:
transformOffsetat the given index
-
transformOffsetAt
SetstransformOffsetwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-