Package org.lwjgl.vulkan
Class VkShaderResourceUsageAMD
- All Implemented Interfaces:
Pointer
struct VkShaderResourceUsageAMD {
uint32_t numUsedVgprs;
uint32_t numUsedSgprs;
uint32_t ldsSizePerLocalWorkGroup;
size_t ldsUsageSizeInBytes;
size_t scratchMemUsageInBytes;
}-
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 member offsets.static final intThe struct member offsets.static final intThe struct member offsets.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
ConstructorsConstructorDescriptionVkShaderResourceUsageAMD(ByteBuffer container) Creates aVkShaderResourceUsageAMDinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkShaderResourceUsageAMDcreate(long address) Returns a newVkShaderResourceUsageAMDinstance for the specified memory address.create(long address, int capacity) Create aVkShaderResourceUsageAMD.Bufferinstance at the specified memory.static @Nullable VkShaderResourceUsageAMDcreateSafe(long address) static @Nullable VkShaderResourceUsageAMD.BuffercreateSafe(long address, int capacity) intlongstatic intnldsSizePerLocalWorkGroup(long struct) Unsafe version ofldsSizePerLocalWorkGroup().static longnldsUsageSizeInBytes(long struct) Unsafe version ofldsUsageSizeInBytes().static intnnumUsedSgprs(long struct) Unsafe version ofnumUsedSgprs().static intnnumUsedVgprs(long struct) Unsafe version ofnumUsedVgprs().static longnscratchMemUsageInBytes(long struct) Unsafe version ofscratchMemUsageInBytes().intintlongintsizeof()Returnssizeof(struct).Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
NUMUSEDVGPRS
public static final int NUMUSEDVGPRSThe struct member offsets. -
NUMUSEDSGPRS
public static final int NUMUSEDSGPRSThe struct member offsets. -
LDSSIZEPERLOCALWORKGROUP
public static final int LDSSIZEPERLOCALWORKGROUPThe struct member offsets. -
LDSUSAGESIZEINBYTES
public static final int LDSUSAGESIZEINBYTESThe struct member offsets. -
SCRATCHMEMUSAGEINBYTES
public static final int SCRATCHMEMUSAGEINBYTESThe struct member offsets.
-
-
Constructor Details
-
VkShaderResourceUsageAMD
Creates aVkShaderResourceUsageAMDinstance 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<VkShaderResourceUsageAMD>
-
numUsedVgprs
public int numUsedVgprs()- Returns:
- the value of the
numUsedVgprsfield.
-
numUsedSgprs
public int numUsedSgprs()- Returns:
- the value of the
numUsedSgprsfield.
-
ldsSizePerLocalWorkGroup
public int ldsSizePerLocalWorkGroup()- Returns:
- the value of the
ldsSizePerLocalWorkGroupfield.
-
ldsUsageSizeInBytes
public long ldsUsageSizeInBytes()- Returns:
- the value of the
ldsUsageSizeInBytesfield.
-
scratchMemUsageInBytes
public long scratchMemUsageInBytes()- Returns:
- the value of the
scratchMemUsageInBytesfield.
-
create
Returns a newVkShaderResourceUsageAMDinstance for the specified memory address. -
createSafe
-
create
Create aVkShaderResourceUsageAMD.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
nnumUsedVgprs
public static int nnumUsedVgprs(long struct) Unsafe version ofnumUsedVgprs(). -
nnumUsedSgprs
public static int nnumUsedSgprs(long struct) Unsafe version ofnumUsedSgprs(). -
nldsSizePerLocalWorkGroup
public static int nldsSizePerLocalWorkGroup(long struct) Unsafe version ofldsSizePerLocalWorkGroup(). -
nldsUsageSizeInBytes
public static long nldsUsageSizeInBytes(long struct) Unsafe version ofldsUsageSizeInBytes(). -
nscratchMemUsageInBytes
public static long nscratchMemUsageInBytes(long struct) Unsafe version ofscratchMemUsageInBytes().
-