Class VkShaderResourceUsageAMD

  • All Implemented Interfaces:
    Pointer

    public class VkShaderResourceUsageAMD
    extends 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;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NUMUSEDVGPRS, NUMUSEDSGPRS, LDSSIZEPERLOCALWORKGROUP, LDSUSAGESIZEINBYTES, SCRATCHMEMUSAGEINBYTES

        The struct member offsets.
    • Constructor Detail

      • VkShaderResourceUsageAMD

        public VkShaderResourceUsageAMD​(java.nio.ByteBuffer container)
        Creates a 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.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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.
      • nnumUsedVgprs

        public static int nnumUsedVgprs​(long struct)
        Unsafe version of numUsedVgprs().
      • nnumUsedSgprs

        public static int nnumUsedSgprs​(long struct)
        Unsafe version of numUsedSgprs().
      • nldsSizePerLocalWorkGroup

        public static int nldsSizePerLocalWorkGroup​(long struct)
        Unsafe version of ldsSizePerLocalWorkGroup().
      • nldsUsageSizeInBytes

        public static long nldsUsageSizeInBytes​(long struct)
        Unsafe version of ldsUsageSizeInBytes().
      • nscratchMemUsageInBytes

        public static long nscratchMemUsageInBytes​(long struct)
        Unsafe version of scratchMemUsageInBytes().