Package org.lwjgl.vulkan
Class VkTransformMatrixKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
- Direct Known Subclasses:
VkTransformMatrixNV
struct VkTransformMatrixKHR {
float matrix[3][4];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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, MemoryStack stack) Returns a newVkTransformMatrixKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkTransformMatrixKHRcalloc(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, MemoryStack stack) Returns a newVkTransformMatrixKHR.Bufferinstance allocated on the specifiedMemoryStack.static VkTransformMatrixKHRmalloc(MemoryStack stack) Returns a newVkTransformMatrixKHRinstance allocated on the specifiedMemoryStack.matrix()floatmatrix(int index) matrix(int index, float value) Sets the specified value at the specified index of thematrixfield.matrix(FloatBuffer value) Copies the specifiedFloatBufferto thematrixfield.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()Returnssizeof(struct).Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkTransformMatrixKHR>
-
matrix
- Returns:
- a
FloatBufferview of thematrixfield.
-
matrix
public float matrix(int index) - Returns:
- the value at the specified index of the
matrixfield.
-
matrix
Copies the specifiedFloatBufferto thematrixfield. -
matrix
Sets the specified value at the specified index of thematrixfield. -
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.
-