Package org.lwjgl.vulkan
Class VkTransformMatrixKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkTransformMatrixKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkTransformMatrixNV
public class VkTransformMatrixKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a 3x4 affine transformation matrix.Valid Usage
- The first three columns of
matrixmust define an invertible 3x3 matrix
See Also
VkAccelerationStructureInstanceKHR,VkAccelerationStructureMatrixMotionInstanceNVLayout
struct VkTransformMatrixKHR { floatmatrix()[3][4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkTransformMatrixKHR.BufferAn array ofVkTransformMatrixKHRstructs.
-
Constructor Summary
Constructors Constructor Description VkTransformMatrixKHR(java.nio.ByteBuffer container)Creates aVkTransformMatrixKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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 VkTransformMatrixKHRcreateSafe(long address)static 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.java.nio.FloatBuffermatrix()a 3x4 row-major affine transformation matrix.floatmatrix(int index)a 3x4 row-major affine transformation matrix.VkTransformMatrixKHRmatrix(int index, float value)Sets the specified value at the specified index of thematrix()field.VkTransformMatrixKHRmatrix(java.nio.FloatBuffer value)Copies the specifiedFloatBufferto thematrix()field.static java.nio.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, java.nio.FloatBuffer value)Unsafe version ofmatrix.VkTransformMatrixKHRset(VkTransformMatrixKHR src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VkTransformMatrixKHR
public VkTransformMatrixKHR(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
matrix
public java.nio.FloatBuffer matrix() public float matrix(int index)
a 3x4 row-major affine transformation matrix.
-
matrix
public VkTransformMatrixKHR matrix(java.nio.FloatBuffer value)
Copies the specifiedFloatBufferto thematrix()field.
-
matrix
public VkTransformMatrixKHR matrix(int index, float value)
Sets the specified value at the specified index of thematrix()field.
-
set
public VkTransformMatrixKHR set(VkTransformMatrixKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkTransformMatrixKHR malloc()
Returns a newVkTransformMatrixKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkTransformMatrixKHR calloc()
Returns a newVkTransformMatrixKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkTransformMatrixKHR create()
Returns a newVkTransformMatrixKHRinstance allocated withBufferUtils.
-
create
public static VkTransformMatrixKHR create(long address)
Returns a newVkTransformMatrixKHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkTransformMatrixKHR createSafe(long address)
-
malloc
public static VkTransformMatrixKHR.Buffer malloc(int capacity)
Returns a newVkTransformMatrixKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkTransformMatrixKHR.Buffer calloc(int capacity)
Returns a newVkTransformMatrixKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkTransformMatrixKHR.Buffer create(int capacity)
Returns a newVkTransformMatrixKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkTransformMatrixKHR.Buffer create(long address, int capacity)
Create aVkTransformMatrixKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkTransformMatrixKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkTransformMatrixKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkTransformMatrixKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkTransformMatrixKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkTransformMatrixKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkTransformMatrixKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkTransformMatrixKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkTransformMatrixKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkTransformMatrixKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmatrix
public static java.nio.FloatBuffer nmatrix(long struct)
Unsafe version ofmatrix().
-
nmatrix
public static float nmatrix(long struct, int index)Unsafe version ofmatrix.
-
nmatrix
public static void nmatrix(long struct, java.nio.FloatBuffer value)Unsafe version ofmatrix.
-
nmatrix
public static void nmatrix(long struct, int index, float value)Unsafe version ofmatrix.
-
-