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.StructResource 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 classVkShaderResourceUsageAMD.BufferAn array ofVkShaderResourceUsageAMDstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intLDSSIZEPERLOCALWORKGROUP
LDSUSAGESIZEINBYTES
NUMUSEDSGPRS
NUMUSEDVGPRS
SCRATCHMEMUSAGEINBYTESThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkShaderResourceUsageAMD(java.nio.ByteBuffer container)Creates aVkShaderResourceUsageAMDinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkShaderResourceUsageAMDcreate(long address)Returns a newVkShaderResourceUsageAMDinstance for the specified memory address.static VkShaderResourceUsageAMD.Buffercreate(long address, int capacity)Create aVkShaderResourceUsageAMD.Bufferinstance at the specified memory.static VkShaderResourceUsageAMDcreateSafe(long address)static VkShaderResourceUsageAMD.BuffercreateSafe(long address, int capacity)intldsSizePerLocalWorkGroup()Returns the value of theldsSizePerLocalWorkGroupfield.longldsUsageSizeInBytes()Returns the value of theldsUsageSizeInBytesfield.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().intnumUsedSgprs()Returns the value of thenumUsedSgprsfield.intnumUsedVgprs()Returns the value of thenumUsedVgprsfield.longscratchMemUsageInBytes()Returns the value of thescratchMemUsageInBytesfield.intsizeof()
-
-
-
Constructor Detail
-
VkShaderResourceUsageAMD
public VkShaderResourceUsageAMD(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
numUsedVgprs
public int numUsedVgprs()
Returns the value of thenumUsedVgprsfield.
-
numUsedSgprs
public int numUsedSgprs()
Returns the value of thenumUsedSgprsfield.
-
ldsSizePerLocalWorkGroup
public int ldsSizePerLocalWorkGroup()
Returns the value of theldsSizePerLocalWorkGroupfield.
-
ldsUsageSizeInBytes
public long ldsUsageSizeInBytes()
Returns the value of theldsUsageSizeInBytesfield.
-
scratchMemUsageInBytes
public long scratchMemUsageInBytes()
Returns the value of thescratchMemUsageInBytesfield.
-
create
public static VkShaderResourceUsageAMD create(long address)
Returns a newVkShaderResourceUsageAMDinstance 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.Bufferinstance 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().
-
-