Class VkTransformMatrixNV
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkTransformMatrixNV
- All Implemented Interfaces:
Addressable
Represents VkTransformMatrixNV.
Layout
struct VkTransformMatrixNV {
float matrix[3][4];
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkTransformMatrixNV.static final MemoryLayoutThe memory layout ofmatrix.static final longThe byte offset ofmatrix.static final VarHandleTheVarHandleofmatrixof type(MemorySegment base, long baseOffset, long index, long index0, long index1)MemorySegment. -
Constructor Summary
ConstructorsConstructorDescriptionVkTransformMatrixNV(MemorySegment segment, long elementCount) CreatesVkTransformMatrixNVwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkTransformMatrixNValloc(SegmentAllocator allocator) Allocates aVkTransformMatrixNVwith the given segment allocator.static VkTransformMatrixNValloc(SegmentAllocator allocator, long count) Allocates aVkTransformMatrixNVwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkTransformMatrixNV.asSlice(long index, long count) Creates a slice ofVkTransformMatrixNV.at(long index, Consumer<VkTransformMatrixNV> func) VisitsVkTransformMatrixNVbuffer at the given index.Copies from the given source.matrix()Returnsmatrix.floatmatrix(long index0, long index1) Returnsmatrix.matrix(long index0, long index1, float value) Setsmatrixwith the given value.matrix(MemorySegment value) Setsmatrixwith the given value.static MemorySegmentmatrix(MemorySegment segment, long index) Returnsmatrixat the given index.static floatmatrix(MemorySegment segment, long index, long index0, long index1) Returnsmatrixat the given index.static voidmatrix(MemorySegment segment, long index, long index0, long index1, float value) Setsmatrixwith the given value at the given index.static voidmatrix(MemorySegment segment, long index, MemorySegment value) Setsmatrixwith the given value at the given index.matrixAt(long index) Returnsmatrixat the given index.floatmatrixAt(long index, long index0, long index1) Returnsmatrixat the given index.matrixAt(long index, long index0, long index1, float value) Setsmatrixwith the given value at the given index.matrixAt(long index, MemorySegment value) Setsmatrixwith the given value at the given index.static VkTransformMatrixNVof(MemorySegment segment) CreatesVkTransformMatrixNVwith the given segment.static VkTransformMatrixNVofNative(MemorySegment segment) CreatesVkTransformMatrixNVwith the given segment.static VkTransformMatrixNVofNative(MemorySegment segment, long count) CreatesVkTransformMatrixNVwith the given segment.reinterpret(long count) Reinterprets this buffer with the given count.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkTransformMatrixNV. -
OFFSET_matrix
public static final long OFFSET_matrixThe byte offset ofmatrix. -
LAYOUT_matrix
The memory layout ofmatrix. -
VH_matrix
-
-
Constructor Details
-
VkTransformMatrixNV
CreatesVkTransformMatrixNVwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkTransformMatrixNVwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkTransformMatrixNVwith 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
VkTransformMatrixNVwith 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 aVkTransformMatrixNVwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkTransformMatrixNV
-
alloc
Allocates aVkTransformMatrixNVwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkTransformMatrixNV
-
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
-
matrix
Returnsmatrixat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
matrixat the given index
-
matrix
Returnsmatrixat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct bufferindex0- the Index 0 of the arrayindex1- the Index 1 of the array- Returns:
matrixat the given index
-
matrix
-
matrix
public float matrix(long index0, long index1) Returnsmatrix.- Parameters:
index0- the Index 0 of the arrayindex1- the Index 1 of the array- Returns:
matrix
-
matrix
Setsmatrixwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
matrix
Setsmatrixwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct bufferindex0- the Index 0 of the arrayindex1- the Index 1 of the arrayvalue- the value
-
matrix
Setsmatrixwith the given value.- Parameters:
value- the value- Returns:
this
-
matrix
Setsmatrixwith the given value.- Parameters:
index0- the Index 0 of the arrayindex1- the Index 1 of the arrayvalue- the value- Returns:
this
-
asSlice
Creates a slice ofVkTransformMatrixNV.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkTransformMatrixNV
-
asSlice
Creates a slice ofVkTransformMatrixNV.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkTransformMatrixNV
-
at
VisitsVkTransformMatrixNVbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
matrixAt
Returnsmatrixat the given index.- Parameters:
index- the index of the struct buffer- Returns:
matrixat the given index
-
matrixAt
public float matrixAt(long index, long index0, long index1) Returnsmatrixat the given index.- Parameters:
index- the index of the struct bufferindex0- the Index 0 of the arrayindex1- the Index 1 of the array- Returns:
matrixat the given index
-
matrixAt
Setsmatrixwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
matrixAt
Setsmatrixwith the given value at the given index.- Parameters:
index- the index of the struct bufferindex0- the Index 0 of the arrayindex1- the Index 1 of the arrayvalue- the value- Returns:
this
-