Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkCooperativeMatrixPropertiesKHR

extends Struct<VkCooperativeMatrixPropertiesKHR>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

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 GetPhysicalDeviceCooperativeMatrixPropertiesKHR.

At least one entry in the list must have power of two values for all of MSize, KSize, and NSize.

Valid Usage (Implicit)
See Also

GetPhysicalDeviceCooperativeMatrixPropertiesKHR

Layout


struct VkCooperativeMatrixPropertiesKHR {
    VkStructureType sType;
    void * pNext;
    uint32_t MSize;
    uint32_t NSize;
    uint32_t KSize;
    VkComponentTypeKHR AType;
    VkComponentTypeKHR BType;
    VkComponentTypeKHR CType;
    VkComponentTypeKHR ResultType;
    VkBool32 saturatingAccumulation;
    VkScopeKHR scope;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ATYPE

The struct member offsets.

public static final int
BTYPE

The struct member offsets.

public static final int
CTYPE

The struct member offsets.

public static final int
KSIZE

The struct member offsets.

public static final int
MSIZE

The struct member offsets.

public static final int
NSIZE

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
RESULTTYPE

The struct member offsets.

public static final int
SATURATINGACCUMULATION

The struct member offsets.

public static final int
SCOPE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
VkCooperativeMatrixPropertiesKHR(ByteBuffer container)

Creates a VkCooperativeMatrixPropertiesKHR instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
AType()

the component type of matrix A, of type VkComponentTypeKHR.

public VkCooperativeMatrixPropertiesKHR
AType(int value)

Sets the specified value to the AType field.

public int
BType()

the component type of matrix B, of type VkComponentTypeKHR.

public VkCooperativeMatrixPropertiesKHR
BType(int value)

Sets the specified value to the BType field.

public static VkCooperativeMatrixPropertiesKHR
calloc()

Returns a new VkCooperativeMatrixPropertiesKHR instance allocated with memCalloc.

public static VkCooperativeMatrixPropertiesKHR.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkCooperativeMatrixPropertiesKHR.Buffer instance allocated with memCalloc.

public static VkCooperativeMatrixPropertiesKHR
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkCooperativeMatrixPropertiesKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkCooperativeMatrixPropertiesKHR.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkCooperativeMatrixPropertiesKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkCooperativeMatrixPropertiesKHR
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkCooperativeMatrixPropertiesKHR
create()

Returns a new VkCooperativeMatrixPropertiesKHR instance allocated with BufferUtils.

public static VkCooperativeMatrixPropertiesKHR
create(long address)

Returns a new VkCooperativeMatrixPropertiesKHR instance for the specified memory address.

public static VkCooperativeMatrixPropertiesKHR.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkCooperativeMatrixPropertiesKHR.Buffer instance allocated with BufferUtils.

public static VkCooperativeMatrixPropertiesKHR.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkCooperativeMatrixPropertiesKHR.Buffer instance at the specified memory.

public static VkCooperativeMatrixPropertiesKHR
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkCooperativeMatrixPropertiesKHR.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
CType()

the component type of matrix C, of type VkComponentTypeKHR.

public VkCooperativeMatrixPropertiesKHR
CType(int value)

Sets the specified value to the CType field.

public int
KSize()

the number of columns in matrix A and rows in matrix B.

public VkCooperativeMatrixPropertiesKHR
KSize(int value)

Sets the specified value to the KSize field.

public static VkCooperativeMatrixPropertiesKHR
malloc()

Returns a new VkCooperativeMatrixPropertiesKHR instance allocated with memAlloc.

public static VkCooperativeMatrixPropertiesKHR.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkCooperativeMatrixPropertiesKHR.Buffer instance allocated with memAlloc.

public static VkCooperativeMatrixPropertiesKHR
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkCooperativeMatrixPropertiesKHR instance allocated on the specified MemoryStack.

public static VkCooperativeMatrixPropertiesKHR.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkCooperativeMatrixPropertiesKHR.Buffer instance allocated on the specified MemoryStack.

public int
MSize()

the number of rows in matrices A, C, and Result.

public VkCooperativeMatrixPropertiesKHR
MSize(int value)

Sets the specified value to the MSize field.

public static int
nAType(long struct)

Unsafe version of AType.

public static void
nAType(long struct, int value)

Unsafe version of AType.

public static int
nBType(long struct)

Unsafe version of BType.

public static void
nBType(long struct, int value)

Unsafe version of BType.

public static int
nCType(long struct)

Unsafe version of CType.

public static void
nCType(long struct, int value)

Unsafe version of CType.

public static int
nKSize(long struct)

Unsafe version of KSize.

public static void
nKSize(long struct, int value)

Unsafe version of KSize.

public static int
nMSize(long struct)

Unsafe version of MSize.

public static void
nMSize(long struct, int value)

Unsafe version of MSize.

public static int
nNSize(long struct)

Unsafe version of NSize.

public static void
nNSize(long struct, int value)

Unsafe version of NSize.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nResultType(long struct)

Unsafe version of ResultType.

public static void
nResultType(long struct, int value)

Unsafe version of ResultType.

public static int
nsaturatingAccumulation(long struct)

Unsafe version of saturatingAccumulation.

public static void
nsaturatingAccumulation(long struct, int value)

Unsafe version of saturatingAccumulation.

public static int
nscope(long struct)

Unsafe version of scope.

public static void
nscope(long struct, int value)

Unsafe version of scope.

public int
NSize()

the number of columns in matrices B, C, Result.

public VkCooperativeMatrixPropertiesKHR
NSize(int value)

Sets the specified value to the NSize field.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkCooperativeMatrixPropertiesKHR
pNext(long value)

Sets the specified value to the pNext field.

public int
ResultType()

the component type of matrix Result, of type VkComponentTypeKHR.

public VkCooperativeMatrixPropertiesKHR
ResultType(int value)

Sets the specified value to the ResultType field.

public boolean
saturatingAccumulation()

indicates whether the SaturatingAccumulation operand to OpCooperativeMatrixMulAddKHR must be present.

public VkCooperativeMatrixPropertiesKHR
saturatingAccumulation(boolean value)

Sets the specified value to the saturatingAccumulation field.

public int
scope()

the scope of all the matrix types, of type VkScopeKHR.

public VkCooperativeMatrixPropertiesKHR
scope(int value)

Sets the specified value to the scope field.

public VkCooperativeMatrixPropertiesKHR
set(int sType, long pNext, int MSize, int NSize, int KSize, int AType, int BType, int CType, int ResultType, boolean saturatingAccumulation, int scope)

Initializes this struct with the specified values.

public VkCooperativeMatrixPropertiesKHR

Returns:

this struct
set
(VkCooperativeMatrixPropertiesKHR
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkCooperativeMatrixPropertiesKHR
sType(int value)

Sets the specified value to the sType field.

public VkCooperativeMatrixPropertiesKHR
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate