public class VkShaderResourceUsageAMD
extends org.lwjgl.system.Struct
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.
struct VkShaderResourceUsageAMD {
uint32_t numUsedVgprs;
uint32_t numUsedSgprs;
uint32_t ldsSizePerLocalWorkGroup;
size_t ldsUsageSizeInBytes;
size_t scratchMemUsageInBytes;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkShaderResourceUsageAMD.Buffer
An array of
VkShaderResourceUsageAMD structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
LDSSIZEPERLOCALWORKGROUP
The struct member offsets.
|
static int |
LDSUSAGESIZEINBYTES
The struct member offsets.
|
static int |
NUMUSEDSGPRS
The struct member offsets.
|
static int |
NUMUSEDVGPRS
The struct member offsets.
|
static int |
SCRATCHMEMUSAGEINBYTES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
VkShaderResourceUsageAMD(java.nio.ByteBuffer container)
Creates a
VkShaderResourceUsageAMD instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkShaderResourceUsageAMD |
create(long address)
Returns a new
VkShaderResourceUsageAMD instance for the specified memory address. |
static VkShaderResourceUsageAMD.Buffer |
create(long address,
int capacity)
Create a
VkShaderResourceUsageAMD.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 the
ldsSizePerLocalWorkGroup field. |
long |
ldsUsageSizeInBytes()
Returns the value of the
ldsUsageSizeInBytes field. |
static int |
nldsSizePerLocalWorkGroup(long struct)
Unsafe version of
ldsSizePerLocalWorkGroup(). |
static long |
nldsUsageSizeInBytes(long struct)
Unsafe version of
ldsUsageSizeInBytes(). |
static int |
nnumUsedSgprs(long struct)
Unsafe version of
numUsedSgprs(). |
static int |
nnumUsedVgprs(long struct)
Unsafe version of
numUsedVgprs(). |
static long |
nscratchMemUsageInBytes(long struct)
Unsafe version of
scratchMemUsageInBytes(). |
int |
numUsedSgprs()
Returns the value of the
numUsedSgprs field. |
int |
numUsedVgprs()
Returns the value of the
numUsedVgprs field. |
long |
scratchMemUsageInBytes()
Returns the value of the
scratchMemUsageInBytes field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NUMUSEDVGPRS
public static final int NUMUSEDSGPRS
public static final int LDSSIZEPERLOCALWORKGROUP
public static final int LDSUSAGESIZEINBYTES
public static final int SCRATCHMEMUSAGEINBYTES
public VkShaderResourceUsageAMD(java.nio.ByteBuffer container)
VkShaderResourceUsageAMD instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int numUsedVgprs()
numUsedVgprs field.public int numUsedSgprs()
numUsedSgprs field.public int ldsSizePerLocalWorkGroup()
ldsSizePerLocalWorkGroup field.public long ldsUsageSizeInBytes()
ldsUsageSizeInBytes field.public long scratchMemUsageInBytes()
scratchMemUsageInBytes field.public static VkShaderResourceUsageAMD create(long address)
VkShaderResourceUsageAMD instance for the specified memory address.@Nullable public static VkShaderResourceUsageAMD createSafe(long address)
public static VkShaderResourceUsageAMD.Buffer create(long address, int capacity)
VkShaderResourceUsageAMD.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkShaderResourceUsageAMD.Buffer createSafe(long address, int capacity)
public static int nnumUsedVgprs(long struct)
numUsedVgprs().public static int nnumUsedSgprs(long struct)
numUsedSgprs().public static int nldsSizePerLocalWorkGroup(long struct)
ldsSizePerLocalWorkGroup().public static long nldsUsageSizeInBytes(long struct)
ldsUsageSizeInBytes().public static long nscratchMemUsageInBytes(long struct)
scratchMemUsageInBytes().Copyright LWJGL. All Rights Reserved. License terms.