Package org.lwjgl.vulkan
Class VkTransformMatrixKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkTransformMatrixKHR>
org.lwjgl.vulkan.VkTransformMatrixKHR
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkTransformMatrixNV
public class VkTransformMatrixKHR
extends org.lwjgl.system.Struct<VkTransformMatrixKHR>
implements org.lwjgl.system.NativeResource
Structure specifying a 3x4 affine transformation matrix.
Valid Usage
- The first three columns of
matrixmust define an invertible 3x3 matrix
See Also
VkAccelerationStructureInstanceKHR, VkAccelerationStructureMatrixMotionInstanceNV
Layout
struct VkTransformMatrixKHR {
float matrix()[3][4];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkTransformMatrixKHR(ByteBuffer container) Creates aVkTransformMatrixKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkTransformMatrixKHRcalloc()Returns a newVkTransformMatrixKHRinstance allocated withmemCalloc.static VkTransformMatrixKHR.Buffercalloc(int capacity) Returns a newVkTransformMatrixKHR.Bufferinstance allocated withmemCalloc.static VkTransformMatrixKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkTransformMatrixKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkTransformMatrixKHRcalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkTransformMatrixKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkTransformMatrixKHRcreate()Returns a newVkTransformMatrixKHRinstance allocated withBufferUtils.static VkTransformMatrixKHR.Buffercreate(int capacity) Returns a newVkTransformMatrixKHR.Bufferinstance allocated withBufferUtils.static VkTransformMatrixKHRcreate(long address) Returns a newVkTransformMatrixKHRinstance for the specified memory address.static VkTransformMatrixKHR.Buffercreate(long address, int capacity) Create aVkTransformMatrixKHR.Bufferinstance at the specified memory.static @Nullable VkTransformMatrixKHRcreateSafe(long address) static @Nullable VkTransformMatrixKHR.BuffercreateSafe(long address, int capacity) static VkTransformMatrixKHRmalloc()Returns a newVkTransformMatrixKHRinstance allocated withmemAlloc.static VkTransformMatrixKHR.Buffermalloc(int capacity) Returns a newVkTransformMatrixKHR.Bufferinstance allocated withmemAlloc.static VkTransformMatrixKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkTransformMatrixKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkTransformMatrixKHRmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkTransformMatrixKHRinstance allocated on the specifiedMemoryStack.matrix()a 3x4 row-major affine transformation matrix.floatmatrix(int index) a 3x4 row-major affine transformation matrix.matrix(int index, float value) Sets the specified value at the specified index of thematrix()field.matrix(FloatBuffer value) Copies the specifiedFloatBufferto thematrix()field.static FloatBuffernmatrix(long struct) Unsafe version ofmatrix().static floatnmatrix(long struct, int index) Unsafe version ofmatrix.static voidnmatrix(long struct, int index, float value) Unsafe version ofmatrix.static voidnmatrix(long struct, FloatBuffer value) Unsafe version ofmatrix.set(VkTransformMatrixKHR src) Copies the specified struct data to this struct.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MATRIX
public static final int MATRIXThe struct member offsets.
-
-
Constructor Details
-
VkTransformMatrixKHR
Creates aVkTransformMatrixKHRinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkTransformMatrixKHR>
-
matrix
a 3x4 row-major affine transformation matrix. -
matrix
public float matrix(int index) a 3x4 row-major affine transformation matrix. -
matrix
Copies the specifiedFloatBufferto thematrix()field. -
matrix
Sets the specified value at the specified index of thematrix()field. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkTransformMatrixKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkTransformMatrixKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkTransformMatrixKHRinstance allocated withBufferUtils. -
create
Returns a newVkTransformMatrixKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkTransformMatrixKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkTransformMatrixKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkTransformMatrixKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkTransformMatrixKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkTransformMatrixKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkTransformMatrixKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkTransformMatrixKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkTransformMatrixKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmatrix
Unsafe version ofmatrix(). -
nmatrix
public static float nmatrix(long struct, int index) Unsafe version ofmatrix. -
nmatrix
Unsafe version ofmatrix. -
nmatrix
public static void nmatrix(long struct, int index, float value) Unsafe version ofmatrix.
-