Class VkPerfHintInfoQCOM

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkPerfHintInfoQCOM extends Struct<VkPerfHintInfoQCOM> implements NativeResource
struct VkPerfHintInfoQCOM {
    VkStructureType sType;
    void * pNext;
    VkPerfHintTypeQCOM type;
    uint32_t scale;
}
  • Field Details

    • SIZEOF

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

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

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • SCALE

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

    • VkPerfHintInfoQCOM

      public VkPerfHintInfoQCOM(ByteBuffer container)
      Creates a VkPerfHintInfoQCOM 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<VkPerfHintInfoQCOM>
    • sType

      @NativeType("VkStructureType") public int sType()
      Returns:
      the value of the sType field.
    • pNext

      @NativeType("void *") public long pNext()
      Returns:
      the value of the pNext field.
    • type

      @NativeType("VkPerfHintTypeQCOM") public int type()
      Returns:
      the value of the type field.
    • scale

      @NativeType("uint32_t") public int scale()
      Returns:
      the value of the scale field.
    • sType

      public VkPerfHintInfoQCOM sType(@NativeType("VkStructureType") int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkPerfHintInfoQCOM sType$Default()
      Sets the STRUCTURE_TYPE_PERF_HINT_INFO_QCOM value to the sType field.
    • pNext

      public VkPerfHintInfoQCOM pNext(@NativeType("void *") long value)
      Sets the specified value to the pNext field.
    • type

      public VkPerfHintInfoQCOM type(@NativeType("VkPerfHintTypeQCOM") int value)
      Sets the specified value to the type field.
    • scale

      public VkPerfHintInfoQCOM scale(@NativeType("uint32_t") int value)
      Sets the specified value to the scale field.
    • set

      public VkPerfHintInfoQCOM set(int sType, long pNext, int type, int scale)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static VkPerfHintInfoQCOM malloc()
      Returns a new VkPerfHintInfoQCOM instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static VkPerfHintInfoQCOM calloc()
      Returns a new VkPerfHintInfoQCOM instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static VkPerfHintInfoQCOM create()
      Returns a new VkPerfHintInfoQCOM instance allocated with BufferUtils.
    • create

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

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

      public static VkPerfHintInfoQCOM.Buffer malloc(int capacity)
      Returns a new VkPerfHintInfoQCOM.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkPerfHintInfoQCOM.Buffer calloc(int capacity)
      Returns a new VkPerfHintInfoQCOM.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkPerfHintInfoQCOM.Buffer create(int capacity)
      Returns a new VkPerfHintInfoQCOM.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

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

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

      public static VkPerfHintInfoQCOM malloc(MemoryStack stack)
      Returns a new VkPerfHintInfoQCOM instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static VkPerfHintInfoQCOM calloc(MemoryStack stack)
      Returns a new VkPerfHintInfoQCOM instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static VkPerfHintInfoQCOM.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new VkPerfHintInfoQCOM.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static VkPerfHintInfoQCOM.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkPerfHintInfoQCOM.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

      public static int nsType(long struct)
      Unsafe version of sType().
    • npNext

      public static long npNext(long struct)
      Unsafe version of pNext().
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nscale

      public static int nscale(long struct)
      Unsafe version of scale().
    • nsType

      public static void nsType(long struct, int value)
      Unsafe version of sType.
    • npNext

      public static void npNext(long struct, long value)
      Unsafe version of pNext.
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nscale

      public static void nscale(long struct, int value)
      Unsafe version of scale.