Package org.lwjgl.vulkan
Class VkShaderResourceUsageAMD
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkShaderResourceUsageAMD
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class VkShaderResourceUsageAMD extends org.lwjgl.system.Struct
Resource usage information about a particular shader within a pipeline.Member documentation
numUsedVgprs
– the number of vector instruction general-purpose registers used by this shader.numUsedSgprs
– the number of scalar instruction general-purpose registers used by this shader.ldsSizePerLocalWorkGroup
– the maximum local data store size per work group in bytes.ldsUsageSizeInBytes
– the LDS usage size in bytes per work group by this shader.scratchMemUsageInBytes
– the scratch memory usage in bytes by this shader.
Layout
struct VkShaderResourceUsageAMD { uint32_t numUsedVgprs; uint32_t numUsedSgprs; uint32_t ldsSizePerLocalWorkGroup; size_t ldsUsageSizeInBytes; size_t scratchMemUsageInBytes; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkShaderResourceUsageAMD.Buffer
An array ofVkShaderResourceUsageAMD
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
LDSSIZEPERLOCALWORKGROUP
LDSUSAGESIZEINBYTES
NUMUSEDSGPRS
NUMUSEDVGPRS
SCRATCHMEMUSAGEINBYTESThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkShaderResourceUsageAMD(java.nio.ByteBuffer container)
Creates aVkShaderResourceUsageAMD
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkShaderResourceUsageAMD
create(long address)
Returns a newVkShaderResourceUsageAMD
instance for the specified memory address.static VkShaderResourceUsageAMD.Buffer
create(long address, int capacity)
Create aVkShaderResourceUsageAMD.Buffer
instance at the specified memory.static VkShaderResourceUsageAMD
createSafe(long address)
static VkShaderResourceUsageAMD.Buffer
createSafe(long address, int capacity)
int
ldsSizePerLocalWorkGroup()
Returns the value of theldsSizePerLocalWorkGroup
field.long
ldsUsageSizeInBytes()
Returns the value of theldsUsageSizeInBytes
field.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
numUsedSgprs()
Returns the value of thenumUsedSgprs
field.int
numUsedVgprs()
Returns the value of thenumUsedVgprs
field.long
scratchMemUsageInBytes()
Returns the value of thescratchMemUsageInBytes
field.int
sizeof()
-
-
-
Constructor Detail
-
VkShaderResourceUsageAMD
public VkShaderResourceUsageAMD(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
numUsedVgprs
public int numUsedVgprs()
Returns the value of thenumUsedVgprs
field.
-
numUsedSgprs
public int numUsedSgprs()
Returns the value of thenumUsedSgprs
field.
-
ldsSizePerLocalWorkGroup
public int ldsSizePerLocalWorkGroup()
Returns the value of theldsSizePerLocalWorkGroup
field.
-
ldsUsageSizeInBytes
public long ldsUsageSizeInBytes()
Returns the value of theldsUsageSizeInBytes
field.
-
scratchMemUsageInBytes
public long scratchMemUsageInBytes()
Returns the value of thescratchMemUsageInBytes
field.
-
create
public static VkShaderResourceUsageAMD create(long address)
Returns a newVkShaderResourceUsageAMD
instance for the specified memory address.
-
createSafe
@Nullable public static VkShaderResourceUsageAMD createSafe(long address)
-
create
public static VkShaderResourceUsageAMD.Buffer create(long address, int capacity)
Create aVkShaderResourceUsageAMD.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkShaderResourceUsageAMD.Buffer createSafe(long address, int capacity)
-
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()
.
-
-