Package org.lwjgl.vulkan
Class VkCooperativeMatrixPropertiesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCooperativeMatrixPropertiesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkCooperativeMatrixPropertiesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying cooperative matrix properties.Description
If some types are preferred over other types (e.g. for performance), they should appear earlier in the list enumerated by
GetPhysicalDeviceCooperativeMatrixPropertiesNV
.At least one entry in the list must have power of two values for all of
MSize
,KSize
, andNSize
.Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_COOPERATIVE_MATRIX_PROPERTIES_NV
pNext
must beNULL
AType
must be a validVkComponentTypeNV
valueBType
must be a validVkComponentTypeNV
valueCType
must be a validVkComponentTypeNV
valueDType
must be a validVkComponentTypeNV
valuescope
must be a validVkScopeNV
value
See Also
GetPhysicalDeviceCooperativeMatrixPropertiesNV
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.MSize
– the number of rows in matrices A, C, and D.NSize
– the number of columns in matrices B, C, D.KSize
– the number of columns in matrix A and rows in matrix B.AType
– the component type of matrix A, of typeVkComponentTypeNV
.BType
– the component type of matrix B, of typeVkComponentTypeNV
.CType
– the component type of matrix C, of typeVkComponentTypeNV
.DType
– the component type of matrix D, of typeVkComponentTypeNV
.scope
– the scope of all the matrix types, of typeVkScopeNV
.
Layout
struct VkCooperativeMatrixPropertiesNV { VkStructureType sType; void * pNext; uint32_t MSize; uint32_t NSize; uint32_t KSize; VkComponentTypeNV AType; VkComponentTypeNV BType; VkComponentTypeNV CType; VkComponentTypeNV DType; VkScopeNV scope; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkCooperativeMatrixPropertiesNV.Buffer
An array ofVkCooperativeMatrixPropertiesNV
structs.
-
Constructor Summary
Constructors Constructor Description VkCooperativeMatrixPropertiesNV(java.nio.ByteBuffer container)
Creates aVkCooperativeMatrixPropertiesNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
AType()
Returns the value of theAType
field.VkCooperativeMatrixPropertiesNV
AType(int value)
Sets the specified value to theAType
field.int
BType()
Returns the value of theBType
field.VkCooperativeMatrixPropertiesNV
BType(int value)
Sets the specified value to theBType
field.static VkCooperativeMatrixPropertiesNV
calloc()
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated withmemCalloc
.static VkCooperativeMatrixPropertiesNV.Buffer
calloc(int capacity)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated withmemCalloc
.static VkCooperativeMatrixPropertiesNV
callocStack()
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkCooperativeMatrixPropertiesNV.Buffer
callocStack(int capacity)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkCooperativeMatrixPropertiesNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCooperativeMatrixPropertiesNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkCooperativeMatrixPropertiesNV
create()
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated withBufferUtils
.static VkCooperativeMatrixPropertiesNV.Buffer
create(int capacity)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated withBufferUtils
.static VkCooperativeMatrixPropertiesNV
create(long address)
Returns a newVkCooperativeMatrixPropertiesNV
instance for the specified memory address.static VkCooperativeMatrixPropertiesNV.Buffer
create(long address, int capacity)
Create aVkCooperativeMatrixPropertiesNV.Buffer
instance at the specified memory.static VkCooperativeMatrixPropertiesNV
createSafe(long address)
static VkCooperativeMatrixPropertiesNV.Buffer
createSafe(long address, int capacity)
int
CType()
Returns the value of theCType
field.VkCooperativeMatrixPropertiesNV
CType(int value)
Sets the specified value to theCType
field.int
DType()
Returns the value of theDType
field.VkCooperativeMatrixPropertiesNV
DType(int value)
Sets the specified value to theDType
field.int
KSize()
Returns the value of theKSize
field.VkCooperativeMatrixPropertiesNV
KSize(int value)
Sets the specified value to theKSize
field.static VkCooperativeMatrixPropertiesNV
malloc()
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated withmemAlloc
.static VkCooperativeMatrixPropertiesNV.Buffer
malloc(int capacity)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated withmemAlloc
.static VkCooperativeMatrixPropertiesNV
mallocStack()
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated on the thread-localMemoryStack
.static VkCooperativeMatrixPropertiesNV.Buffer
mallocStack(int capacity)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkCooperativeMatrixPropertiesNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkCooperativeMatrixPropertiesNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated on the specifiedMemoryStack
.int
MSize()
Returns the value of theMSize
field.VkCooperativeMatrixPropertiesNV
MSize(int value)
Sets the specified value to theMSize
field.static int
nAType(long struct)
Unsafe version ofAType()
.static void
nAType(long struct, int value)
Unsafe version ofAType
.static int
nBType(long struct)
Unsafe version ofBType()
.static void
nBType(long struct, int value)
Unsafe version ofBType
.static int
nCType(long struct)
Unsafe version ofCType()
.static void
nCType(long struct, int value)
Unsafe version ofCType
.static int
nDType(long struct)
Unsafe version ofDType()
.static void
nDType(long struct, int value)
Unsafe version ofDType
.static int
nKSize(long struct)
Unsafe version ofKSize()
.static void
nKSize(long struct, int value)
Unsafe version ofKSize
.static int
nMSize(long struct)
Unsafe version ofMSize()
.static void
nMSize(long struct, int value)
Unsafe version ofMSize
.static int
nNSize(long struct)
Unsafe version ofNSize()
.static void
nNSize(long struct, int value)
Unsafe version ofNSize
.static long
npNext(long struct)
Unsafe version ofpNext()
.static void
npNext(long struct, long value)
Unsafe version ofpNext
.static int
nscope(long struct)
Unsafe version ofscope()
.static void
nscope(long struct, int value)
Unsafe version ofscope
.int
NSize()
Returns the value of theNSize
field.VkCooperativeMatrixPropertiesNV
NSize(int value)
Sets the specified value to theNSize
field.static int
nsType(long struct)
Unsafe version ofsType()
.static void
nsType(long struct, int value)
Unsafe version ofsType
.long
pNext()
Returns the value of thepNext
field.VkCooperativeMatrixPropertiesNV
pNext(long value)
Sets the specified value to thepNext
field.int
scope()
Returns the value of thescope
field.VkCooperativeMatrixPropertiesNV
scope(int value)
Sets the specified value to thescope
field.VkCooperativeMatrixPropertiesNV
set(int sType, long pNext, int MSize, int NSize, int KSize, int AType, int BType, int CType, int DType, int scope)
Initializes this struct with the specified values.VkCooperativeMatrixPropertiesNV
set(VkCooperativeMatrixPropertiesNV src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkCooperativeMatrixPropertiesNV
sType(int value)
Sets the specified value to thesType
field.
-
-
-
Constructor Detail
-
VkCooperativeMatrixPropertiesNV
public VkCooperativeMatrixPropertiesNV(java.nio.ByteBuffer container)
Creates aVkCooperativeMatrixPropertiesNV
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
MSize
public int MSize()
Returns the value of theMSize
field.
-
NSize
public int NSize()
Returns the value of theNSize
field.
-
KSize
public int KSize()
Returns the value of theKSize
field.
-
AType
public int AType()
Returns the value of theAType
field.
-
BType
public int BType()
Returns the value of theBType
field.
-
CType
public int CType()
Returns the value of theCType
field.
-
DType
public int DType()
Returns the value of theDType
field.
-
scope
public int scope()
Returns the value of thescope
field.
-
sType
public VkCooperativeMatrixPropertiesNV sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkCooperativeMatrixPropertiesNV pNext(long value)
Sets the specified value to thepNext
field.
-
MSize
public VkCooperativeMatrixPropertiesNV MSize(int value)
Sets the specified value to theMSize
field.
-
NSize
public VkCooperativeMatrixPropertiesNV NSize(int value)
Sets the specified value to theNSize
field.
-
KSize
public VkCooperativeMatrixPropertiesNV KSize(int value)
Sets the specified value to theKSize
field.
-
AType
public VkCooperativeMatrixPropertiesNV AType(int value)
Sets the specified value to theAType
field.
-
BType
public VkCooperativeMatrixPropertiesNV BType(int value)
Sets the specified value to theBType
field.
-
CType
public VkCooperativeMatrixPropertiesNV CType(int value)
Sets the specified value to theCType
field.
-
DType
public VkCooperativeMatrixPropertiesNV DType(int value)
Sets the specified value to theDType
field.
-
scope
public VkCooperativeMatrixPropertiesNV scope(int value)
Sets the specified value to thescope
field.
-
set
public VkCooperativeMatrixPropertiesNV set(int sType, long pNext, int MSize, int NSize, int KSize, int AType, int BType, int CType, int DType, int scope)
Initializes this struct with the specified values.
-
set
public VkCooperativeMatrixPropertiesNV set(VkCooperativeMatrixPropertiesNV src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkCooperativeMatrixPropertiesNV malloc()
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkCooperativeMatrixPropertiesNV calloc()
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkCooperativeMatrixPropertiesNV create()
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated withBufferUtils
.
-
create
public static VkCooperativeMatrixPropertiesNV create(long address)
Returns a newVkCooperativeMatrixPropertiesNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkCooperativeMatrixPropertiesNV createSafe(long address)
-
malloc
public static VkCooperativeMatrixPropertiesNV.Buffer malloc(int capacity)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkCooperativeMatrixPropertiesNV.Buffer calloc(int capacity)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkCooperativeMatrixPropertiesNV.Buffer create(int capacity)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkCooperativeMatrixPropertiesNV.Buffer create(long address, int capacity)
Create aVkCooperativeMatrixPropertiesNV.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkCooperativeMatrixPropertiesNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkCooperativeMatrixPropertiesNV mallocStack()
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkCooperativeMatrixPropertiesNV callocStack()
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkCooperativeMatrixPropertiesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkCooperativeMatrixPropertiesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkCooperativeMatrixPropertiesNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkCooperativeMatrixPropertiesNV.Buffer mallocStack(int capacity)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkCooperativeMatrixPropertiesNV.Buffer callocStack(int capacity)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkCooperativeMatrixPropertiesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkCooperativeMatrixPropertiesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCooperativeMatrixPropertiesNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType()
.
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext()
.
-
nMSize
public static int nMSize(long struct)
Unsafe version ofMSize()
.
-
nNSize
public static int nNSize(long struct)
Unsafe version ofNSize()
.
-
nKSize
public static int nKSize(long struct)
Unsafe version ofKSize()
.
-
nAType
public static int nAType(long struct)
Unsafe version ofAType()
.
-
nBType
public static int nBType(long struct)
Unsafe version ofBType()
.
-
nCType
public static int nCType(long struct)
Unsafe version ofCType()
.
-
nDType
public static int nDType(long struct)
Unsafe version ofDType()
.
-
nscope
public static int nscope(long struct)
Unsafe version ofscope()
.
-
nsType
public static void nsType(long struct, int value)
Unsafe version ofsType
.
-
npNext
public static void npNext(long struct, long value)
Unsafe version ofpNext
.
-
nMSize
public static void nMSize(long struct, int value)
Unsafe version ofMSize
.
-
nNSize
public static void nNSize(long struct, int value)
Unsafe version ofNSize
.
-
nKSize
public static void nKSize(long struct, int value)
Unsafe version ofKSize
.
-
nAType
public static void nAType(long struct, int value)
Unsafe version ofAType
.
-
nBType
public static void nBType(long struct, int value)
Unsafe version ofBType
.
-
nCType
public static void nCType(long struct, int value)
Unsafe version ofCType
.
-
nDType
public static void nDType(long struct, int value)
Unsafe version ofDType
.
-
nscope
public static void nscope(long struct, int value)
Unsafe version ofscope
.
-
-