Class VkShaderStatisticsInfoAMD

All Implemented Interfaces:
Pointer

public class VkShaderStatisticsInfoAMD extends Struct<VkShaderStatisticsInfoAMD>

 struct VkShaderStatisticsInfoAMD {
     VkShaderStageFlags shaderStageMask;
     {@link VkShaderResourceUsageAMD VkShaderResourceUsageAMD} resourceUsage;
     uint32_t numPhysicalVgprs;
     uint32_t numPhysicalSgprs;
     uint32_t numAvailableVgprs;
     uint32_t numAvailableSgprs;
     uint32_t computeWorkGroupSize[3];
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • SHADERSTAGEMASK

      public static final int SHADERSTAGEMASK
      The struct member offsets.
    • RESOURCEUSAGE

      public static final int RESOURCEUSAGE
      The struct member offsets.
    • NUMPHYSICALVGPRS

      public static final int NUMPHYSICALVGPRS
      The struct member offsets.
    • NUMPHYSICALSGPRS

      public static final int NUMPHYSICALSGPRS
      The struct member offsets.
    • NUMAVAILABLEVGPRS

      public static final int NUMAVAILABLEVGPRS
      The struct member offsets.
    • NUMAVAILABLESGPRS

      public static final int NUMAVAILABLESGPRS
      The struct member offsets.
    • COMPUTEWORKGROUPSIZE

      public static final int COMPUTEWORKGROUPSIZE
      The struct member offsets.
  • Constructor Details

    • VkShaderStatisticsInfoAMD

      public VkShaderStatisticsInfoAMD(ByteBuffer container)
      Creates a VkShaderStatisticsInfoAMD 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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkShaderStatisticsInfoAMD>
    • shaderStageMask

      public int shaderStageMask()
      Returns:
      the value of the shaderStageMask field.
    • resourceUsage

      public VkShaderResourceUsageAMD resourceUsage()
      Returns:
      a VkShaderResourceUsageAMD view of the resourceUsage field.
    • numPhysicalVgprs

      public int numPhysicalVgprs()
      Returns:
      the value of the numPhysicalVgprs field.
    • numPhysicalSgprs

      public int numPhysicalSgprs()
      Returns:
      the value of the numPhysicalSgprs field.
    • numAvailableVgprs

      public int numAvailableVgprs()
      Returns:
      the value of the numAvailableVgprs field.
    • numAvailableSgprs

      public int numAvailableSgprs()
      Returns:
      the value of the numAvailableSgprs field.
    • computeWorkGroupSize

      public IntBuffer computeWorkGroupSize()
      Returns:
      a IntBuffer view of the computeWorkGroupSize field.
    • computeWorkGroupSize

      public int computeWorkGroupSize(int index)
      Returns:
      the value at the specified index of the computeWorkGroupSize field.
    • create

      public static VkShaderStatisticsInfoAMD create(long address)
      Returns a new VkShaderStatisticsInfoAMD instance for the specified memory address.
    • createSafe

      public static @Nullable VkShaderStatisticsInfoAMD createSafe(long address)
      Like create, but returns null if address is NULL.
    • create

      public static VkShaderStatisticsInfoAMD.Buffer create(long address, int capacity)
      Create a VkShaderStatisticsInfoAMD.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable VkShaderStatisticsInfoAMD.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • nshaderStageMask

      public static int nshaderStageMask(long struct)
      Unsafe version of shaderStageMask().
    • nresourceUsage

      public static VkShaderResourceUsageAMD nresourceUsage(long struct)
      Unsafe version of resourceUsage().
    • nnumPhysicalVgprs

      public static int nnumPhysicalVgprs(long struct)
      Unsafe version of numPhysicalVgprs().
    • nnumPhysicalSgprs

      public static int nnumPhysicalSgprs(long struct)
      Unsafe version of numPhysicalSgprs().
    • nnumAvailableVgprs

      public static int nnumAvailableVgprs(long struct)
      Unsafe version of numAvailableVgprs().
    • nnumAvailableSgprs

      public static int nnumAvailableSgprs(long struct)
      Unsafe version of numAvailableSgprs().
    • ncomputeWorkGroupSize

      public static IntBuffer ncomputeWorkGroupSize(long struct)
      Unsafe version of computeWorkGroupSize().
    • ncomputeWorkGroupSize

      public static int ncomputeWorkGroupSize(long struct, int index)
      Unsafe version of computeWorkGroupSize.