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 of theVkPhysicalDeviceFeatures2structure passed toGetPhysicalDeviceFeatures2, it is filled in to indicate whether each corresponding feature is supported.VkPhysicalDeviceCooperativeMatrixFeaturesNVcan also be used in thepNextchain ofVkDeviceCreateInfoto selectively enable these features.Valid Usage (Implicit)
Layout
struct VkPhysicalDeviceCooperativeMatrixFeaturesNV { VkStructureTypesType(); void *pNext(); VkBool32cooperativeMatrix(); VkBool32cooperativeMatrixRobustBufferAccess(); }
-
-
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 Deprecated 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 VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCooperativeMatrixFeaturesNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkPhysicalDeviceCooperativeMatrixFeaturesNVcallocStack()Deprecated.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.BuffercallocStack(int capacity)Deprecated.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceCooperativeMatrixFeaturesNVcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.booleancooperativeMatrix()indicates that the implementation supports theCooperativeMatrixNVSPIR-V capability.VkPhysicalDeviceCooperativeMatrixFeaturesNVcooperativeMatrix(boolean value)Sets the specified value to thecooperativeMatrix()field.booleancooperativeMatrixRobustBufferAccess()indicates that the implementation supports robust buffer access for SPIR-VOpCooperativeMatrixLoadNVandOpCooperativeMatrixStoreNVinstructions.VkPhysicalDeviceCooperativeMatrixFeaturesNVcooperativeMatrixRobustBufferAccess(boolean value)Sets the specified value to thecooperativeMatrixRobustBufferAccess()field.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 VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNV.Bufferinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceCooperativeMatrixFeaturesNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the specifiedMemoryStack.static VkPhysicalDeviceCooperativeMatrixFeaturesNVmallocStack()Deprecated.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.BuffermallocStack(int capacity)Deprecated.static VkPhysicalDeviceCooperativeMatrixFeaturesNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkPhysicalDeviceCooperativeMatrixFeaturesNVmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()NULLor a pointer to a structure extending this structure.VkPhysicalDeviceCooperativeMatrixFeaturesNVpNext(long value)Sets the specified value to thepNext()field.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()the type of this structure.VkPhysicalDeviceCooperativeMatrixFeaturesNVsType(int value)Sets the specified value to thesType()field.VkPhysicalDeviceCooperativeMatrixFeaturesNVsType$Default()Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_FEATURES_NVvalue to thesType()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
cooperativeMatrix
public boolean cooperativeMatrix()
indicates that the implementation supports theCooperativeMatrixNVSPIR-V capability.
-
cooperativeMatrixRobustBufferAccess
public boolean cooperativeMatrixRobustBufferAccess()
indicates that the implementation supports robust buffer access for SPIR-VOpCooperativeMatrixLoadNVandOpCooperativeMatrixStoreNVinstructions.
-
sType
public VkPhysicalDeviceCooperativeMatrixFeaturesNV sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkPhysicalDeviceCooperativeMatrixFeaturesNV sType$Default()
Sets theSTRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_FEATURES_NVvalue to thesType()field.
-
pNext
public VkPhysicalDeviceCooperativeMatrixFeaturesNV pNext(long value)
Sets the specified value to thepNext()field.
-
cooperativeMatrix
public VkPhysicalDeviceCooperativeMatrixFeaturesNV cooperativeMatrix(boolean value)
Sets the specified value to thecooperativeMatrix()field.
-
cooperativeMatrixRobustBufferAccess
public VkPhysicalDeviceCooperativeMatrixFeaturesNV cooperativeMatrixRobustBufferAccess(boolean value)
Sets the specified value to thecooperativeMatrixRobustBufferAccess()field.
-
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
@Deprecated public static VkPhysicalDeviceCooperativeMatrixFeaturesNV mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceCooperativeMatrixFeaturesNV callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceCooperativeMatrixFeaturesNV mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceCooperativeMatrixFeaturesNV callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkPhysicalDeviceCooperativeMatrixFeaturesNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV calloc(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
-
malloc
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer malloc(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
-
calloc
public static VkPhysicalDeviceCooperativeMatrixFeaturesNV.Buffer calloc(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.
-
-