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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier 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
ConstructorsConstructorDescriptionVkShaderResourceUsageAMD
(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 @Nullable VkShaderResourceUsageAMD
createSafe
(long address) static @Nullable VkShaderResourceUsageAMD.Buffer
createSafe
(long address, int capacity) int
long
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
int
long
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()- Returns:
- the value of the
numUsedVgprs
field.
-
numUsedSgprs
public int numUsedSgprs()- Returns:
- the value of the
numUsedSgprs
field.
-
ldsSizePerLocalWorkGroup
public int ldsSizePerLocalWorkGroup()- Returns:
- the value of the
ldsSizePerLocalWorkGroup
field.
-
ldsUsageSizeInBytes
public long ldsUsageSizeInBytes()- Returns:
- the value of the
ldsUsageSizeInBytes
field.
-
scratchMemUsageInBytes
public long scratchMemUsageInBytes()- Returns:
- the value of the
scratchMemUsageInBytes
field.
-
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()
.
-