Package org.lwjgl.vulkan
Class VkShaderResourceUsageAMD
- All Implemented Interfaces:
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 classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVkShaderResourceUsageAMD
(ByteBuffer container) Creates aVkShaderResourceUsageAMD
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkShaderResourceUsageAMD
create
(long address) Returns a newVkShaderResourceUsageAMD
instance for the specified memory address.create
(long address, int capacity) Create aVkShaderResourceUsageAMD.Buffer
instance at the specified memory.static VkShaderResourceUsageAMD
createSafe
(long address) createSafe
(long address, int capacity) int
the maximum local data store size per work group in bytes.long
the LDS usage size in bytes per work group by this shader.static int
nldsSizePerLocalWorkGroup
(long struct) Unsafe version ofldsSizePerLocalWorkGroup()
.static long
nldsUsageSizeInBytes
(long struct) Unsafe version ofldsUsageSizeInBytes()
.static int
nnumUsedSgprs
(long struct) Unsafe version ofnumUsedSgprs()
.static int
nnumUsedVgprs
(long struct) Unsafe version ofnumUsedVgprs()
.static long
nscratchMemUsageInBytes
(long struct) Unsafe version ofscratchMemUsageInBytes()
.int
the number of scalar instruction general-purpose registers used by this shader.int
the number of vector instruction general-purpose registers used by this shader.long
the scratch memory usage in bytes by this shader.int
sizeof()
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 aVkShaderResourceUsageAMD
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<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 newVkShaderResourceUsageAMD
instance for the specified memory address. -
createSafe
-
create
Create aVkShaderResourceUsageAMD.Buffer
instance 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()
.
-