Package org.lwjgl.vulkan
Class VkPhysicalDeviceCooperativeMatrixFeaturesNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkPhysicalDeviceCooperativeMatrixFeaturesNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkPhysicalDeviceCooperativeMatrixFeaturesNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure describing cooperative matrix features that can be supported by an implementation.Description
If the
VkPhysicalDeviceCooperativeMatrixFeaturesNVstructure is included in thepNextchain ofVkPhysicalDeviceFeatures2, it is filled with values indicating whether the feature is supported.VkPhysicalDeviceCooperativeMatrixFeaturesNVcan also be used in thepNextchain ofVkDeviceCreateInfoto enable features.Valid Usage (Implicit)
Member documentation
cooperativeMatrix– indicates that the implementation supports theCooperativeMatrixNVSPIR-V capability.cooperativeMatrixRobustBufferAccess– indicates that the implementation supports robust buffer access for SPIR-VOpCooperativeMatrixLoadNVandOpCooperativeMatrixStoreNVinstructions.
Layout
struct VkPhysicalDeviceCooperativeMatrixFeaturesNV { VkStructureType sType; void * pNext; VkBool32 cooperativeMatrix; VkBool32 cooperativeMatrixRobustBufferAccess; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkPhysicalDeviceCooperativeMatrixFeaturesNV.BufferAn array ofVkPhysicalDeviceCooperativeMatrixFeaturesNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOOPERATIVEMATRIX
COOPERATIVEMATRIXROBUSTBUFFERACCESS
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkPhysicalDeviceCooperativeMatrixFeaturesNV(java.nio.ByteBuffer container)Creates aVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkPhysicalDeviceCooperativeMatrixFeaturesNVcalloc()Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated withmemCalloc.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffercalloc(int capacity)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated withmemCalloc.static VkPhysicalDeviceCooperativeMatrixFeaturesNVcallocStack()Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.BuffercallocStack(int capacity)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCooperativeMatrixFeaturesNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.booleancooperativeMatrix()Returns the value of thecooperativeMatrixfield.VkPhysicalDeviceCooperativeMatrixFeaturesNVcooperativeMatrix(boolean value)Sets the specified value to thecooperativeMatrixfield.booleancooperativeMatrixRobustBufferAccess()Returns the value of thecooperativeMatrixRobustBufferAccessfield.VkPhysicalDeviceCooperativeMatrixFeaturesNVcooperativeMatrixRobustBufferAccess(boolean value)Sets the specified value to thecooperativeMatrixRobustBufferAccessfield.static VkPhysicalDeviceCooperativeMatrixFeaturesNVcreate()Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated withBufferUtils.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffercreate(int capacity)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated withBufferUtils.static VkPhysicalDeviceCooperativeMatrixFeaturesNVcreate(long address)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance for the specified memory address.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffercreate(long address, int capacity)Create aVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance at the specified memory.static VkPhysicalDeviceCooperativeMatrixFeaturesNVcreateSafe(long address)static VkPhysicalDeviceCooperativeMatrixFeaturesNV.BuffercreateSafe(long address, int capacity)static VkPhysicalDeviceCooperativeMatrixFeaturesNVmalloc()Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated withmemAlloc.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffermalloc(int capacity)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated withmemAlloc.static VkPhysicalDeviceCooperativeMatrixFeaturesNVmallocStack()Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.BuffermallocStack(int capacity)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated on the thread-localMemoryStack.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceCooperativeMatrixFeaturesNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the specifiedMemoryStack.static intncooperativeMatrix(long struct)Unsafe version ofcooperativeMatrix().static voidncooperativeMatrix(long struct, int value)Unsafe version ofcooperativeMatrix.static intncooperativeMatrixRobustBufferAccess(long struct)Unsafe version ofcooperativeMatrixRobustBufferAccess().static voidncooperativeMatrixRobustBufferAccess(long struct, int value)Unsafe version ofcooperativeMatrixRobustBufferAccess.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()Returns the value of thepNextfield.VkPhysicalDeviceCooperativeMatrixFeaturesNVpNext(long value)Sets the specified value to thepNextfield.VkPhysicalDeviceCooperativeMatrixFeaturesNVset(int sType, long pNext, boolean cooperativeMatrix, boolean cooperativeMatrixRobustBufferAccess)Initializes this struct with the specified values.VkPhysicalDeviceCooperativeMatrixFeaturesNVset(VkPhysicalDeviceCooperativeMatrixFeaturesNV src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkPhysicalDeviceCooperativeMatrixFeaturesNVsType(int value)Sets the specified value to thesTypefield.
-
-
-
Constructor Detail
-
VkPhysicalDeviceCooperativeMatrixFeaturesNV
public VkPhysicalDeviceCooperativeMatrixFeaturesNV(java.nio.ByteBuffer container)
Creates aVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance 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
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
cooperativeMatrix
public boolean cooperativeMatrix()
Returns the value of thecooperativeMatrixfield.
-
cooperativeMatrixRobustBufferAccess
public boolean cooperativeMatrixRobustBufferAccess()
Returns the value of thecooperativeMatrixRobustBufferAccessfield.
-
sType
public VkPhysicalDeviceCooperativeMatrixFeaturesNV sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkPhysicalDeviceCooperativeMatrixFeaturesNV pNext(long value)
Sets the specified value to thepNextfield.
-
cooperativeMatrix
public VkPhysicalDeviceCooperativeMatrixFeaturesNV cooperativeMatrix(boolean value)
Sets the specified value to thecooperativeMatrixfield.
-
cooperativeMatrixRobustBufferAccess
public VkPhysicalDeviceCooperativeMatrixFeaturesNV cooperativeMatrixRobustBufferAccess(boolean value)
Sets the specified value to thecooperativeMatrixRobustBufferAccessfield.
-
set
public VkPhysicalDeviceCooperativeMatrixFeaturesNV set(int sType, long pNext, boolean cooperativeMatrix, boolean cooperativeMatrixRobustBufferAccess)
Initializes this struct with the specified values.
-
set
public VkPhysicalDeviceCooperativeMatrixFeaturesNV set(VkPhysicalDeviceCooperativeMatrixFeaturesNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV malloc()
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV calloc()
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV create()
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated withBufferUtils.
-
create
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV create(long address)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkPhysicalDeviceCooperativeMatrixFeaturesNV createSafe(long address)
-
malloc
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer malloc(int capacity)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer calloc(int capacity)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer create(int capacity)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer create(long address, int capacity)
Create aVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV mallocStack()
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV callocStack()
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer mallocStack(int capacity)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer callocStack(int capacity)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand 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().
-
ncooperativeMatrix
public static int ncooperativeMatrix(long struct)
Unsafe version ofcooperativeMatrix().
-
ncooperativeMatrixRobustBufferAccess
public static int ncooperativeMatrixRobustBufferAccess(long struct)
Unsafe version ofcooperativeMatrixRobustBufferAccess().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
ncooperativeMatrix
public static void ncooperativeMatrix(long struct, int value)Unsafe version ofcooperativeMatrix.
-
ncooperativeMatrixRobustBufferAccess
public static void ncooperativeMatrixRobustBufferAccess(long struct, int value)Unsafe version ofcooperativeMatrixRobustBufferAccess.
-
-