Class VkTransformMatrixNV
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkTransformMatrixNV
- All Implemented Interfaces:
Addressable
Layout
struct VkTransformMatrixNV {
float matrix[3][4];
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkTransformMatrixNV
.static final MemoryLayout
The memory layout ofmatrix
.static final long
The byte offset ofmatrix
.static final VarHandle
TheVarHandle
ofmatrix
of type(MemorySegment base, long baseOffset, long index, long index0, long index1)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionVkTransformMatrixNV
(MemorySegment segment, long elementCount) CreatesVkTransformMatrixNV
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkTransformMatrixNV
alloc
(SegmentAllocator allocator) Allocates aVkTransformMatrixNV
with the given segment allocator.static VkTransformMatrixNV
alloc
(SegmentAllocator allocator, long count) Allocates aVkTransformMatrixNV
with 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) VisitsVkTransformMatrixNV
buffer at the given index.Copies from the given source.matrix()
Returnsmatrix
.float
matrix
(long index0, long index1) Returnsmatrix
.matrix
(long index0, long index1, float value) Setsmatrix
with the given value.matrix
(MemorySegment value) Setsmatrix
with the given value.static MemorySegment
matrix
(MemorySegment segment, long index) Returnsmatrix
at the given index.static float
matrix
(MemorySegment segment, long index, long index0, long index1) Returnsmatrix
at the given index.static void
matrix
(MemorySegment segment, long index, long index0, long index1, float value) Setsmatrix
with the given value at the given index.static void
matrix
(MemorySegment segment, long index, MemorySegment value) Setsmatrix
with the given value at the given index.matrixAt
(long index) Returnsmatrix
at the given index.float
matrixAt
(long index, long index0, long index1) Returnsmatrix
at the given index.matrixAt
(long index, long index0, long index1, float value) Setsmatrix
with the given value at the given index.matrixAt
(long index, MemorySegment value) Setsmatrix
with the given value at the given index.static VkTransformMatrixNV
of
(MemorySegment segment) CreatesVkTransformMatrixNV
with the given segment.static VkTransformMatrixNV
ofNative
(MemorySegment segment) CreatesVkTransformMatrixNV
with the given segment.static VkTransformMatrixNV
ofNative
(MemorySegment segment, long count) CreatesVkTransformMatrixNV
with the given segment.reinterpret
(long count) Reinterprets this buffer with the given count.Methods inherited from class overrungl.struct.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
CreatesVkTransformMatrixNV
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkTransformMatrixNV
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkTransformMatrixNV
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
VkTransformMatrixNV
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 aVkTransformMatrixNV
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkTransformMatrixNV
-
alloc
Allocates aVkTransformMatrixNV
with 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
Returnsmatrix
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
matrix
at the given index
-
matrix
Returnsmatrix
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 array- Returns:
matrix
at 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
Setsmatrix
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
matrix
Setsmatrix
with 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
Setsmatrix
with the given value.- Parameters:
value
- the value- Returns:
this
-
matrix
Setsmatrix
with 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
VisitsVkTransformMatrixNV
buffer at the given index.- Parameters:
index
- the index of this bufferfunc
- the function to run with the slice of this buffer- Returns:
this
-
matrixAt
Returnsmatrix
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
matrix
at the given index
-
matrixAt
public float matrixAt(long index, long index0, long index1) Returnsmatrix
at the given index.- Parameters:
index
- the index of the struct bufferindex0
- the Index 0 of the arrayindex1
- the Index 1 of the array- Returns:
matrix
at the given index
-
matrixAt
Setsmatrix
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
matrixAt
Setsmatrix
with 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
-