Package org.lwjgl.vulkan
Class VkShaderResourceUsageAMD
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkShaderResourceUsageAMD>
org.lwjgl.vulkan.VkShaderResourceUsageAMD
- All Implemented Interfaces:
org.lwjgl.system.Pointer
Resource usage information about a particular shader within a pipeline.
See Also
Layout
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
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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) intthe maximum local data store size per work group in bytes.longthe LDS usage size in bytes per work group by this shader.static 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().intthe number of scalar instruction general-purpose registers used by this shader.intthe number of vector instruction general-purpose registers used by this shader.longthe scratch memory usage in bytes by this shader.intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkShaderResourceUsageAMD>
-
numUsedVgprs
public int numUsedVgprs()the number of vector instruction general-purpose registers used by this shader. -
numUsedSgprs
public int numUsedSgprs()the number of scalar instruction general-purpose registers used by this shader. -
ldsSizePerLocalWorkGroup
public int ldsSizePerLocalWorkGroup()the maximum local data store size per work group in bytes. -
ldsUsageSizeInBytes
public long ldsUsageSizeInBytes()the LDS usage size in bytes per work group by this shader. -
scratchMemUsageInBytes
public long scratchMemUsageInBytes()the scratch memory usage in bytes by this shader. -
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().
-