Class VkAntiLagDataAMD

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkAntiLagDataAMD extends Struct<VkAntiLagDataAMD> implements NativeResource

 struct VkAntiLagDataAMD {
     VkStructureType sType;
     void const * pNext;
     VkAntiLagModeAMD mode;
     uint32_t maxFPS;
     {@link VkAntiLagPresentationInfoAMD VkAntiLagPresentationInfoAMD} const * pPresentationInfo;
 }
  • 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.
    • MODE

      public static final int MODE
      The struct member offsets.
    • MAXFPS

      public static final int MAXFPS
      The struct member offsets.
    • PPRESENTATIONINFO

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

    • VkAntiLagDataAMD

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

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • mode

      public int mode()
      Returns:
      the value of the mode field.
    • maxFPS

      public int maxFPS()
      Returns:
      the value of the maxFPS field.
    • pPresentationInfo

      public @Nullable VkAntiLagPresentationInfoAMD pPresentationInfo()
      Returns:
      a VkAntiLagPresentationInfoAMD view of the struct pointed to by the pPresentationInfo field.
    • sType

      public VkAntiLagDataAMD sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkAntiLagDataAMD sType$Default()
      Sets the STRUCTURE_TYPE_ANTI_LAG_DATA_AMD value to the sType field.
    • pNext

      public VkAntiLagDataAMD pNext(long value)
      Sets the specified value to the pNext field.
    • mode

      public VkAntiLagDataAMD mode(int value)
      Sets the specified value to the mode field.
    • maxFPS

      public VkAntiLagDataAMD maxFPS(int value)
      Sets the specified value to the maxFPS field.
    • pPresentationInfo

      public VkAntiLagDataAMD pPresentationInfo(@Nullable VkAntiLagPresentationInfoAMD value)
      Sets the address of the specified VkAntiLagPresentationInfoAMD to the pPresentationInfo field.
    • set

      public VkAntiLagDataAMD set(int sType, long pNext, int mode, int maxFPS, @Nullable VkAntiLagPresentationInfoAMD pPresentationInfo)
      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 VkAntiLagDataAMD malloc()
      Returns a new VkAntiLagDataAMD instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static VkAntiLagDataAMD.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkAntiLagDataAMD.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().
    • nmode

      public static int nmode(long struct)
      Unsafe version of mode().
    • nmaxFPS

      public static int nmaxFPS(long struct)
      Unsafe version of maxFPS().
    • npPresentationInfo

      public static @Nullable VkAntiLagPresentationInfoAMD npPresentationInfo(long struct)
      Unsafe version of pPresentationInfo().
    • 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.
    • nmode

      public static void nmode(long struct, int value)
      Unsafe version of mode.
    • nmaxFPS

      public static void nmaxFPS(long struct, int value)
      Unsafe version of maxFPS.
    • npPresentationInfo

      public static void npPresentationInfo(long struct, @Nullable VkAntiLagPresentationInfoAMD value)
      Unsafe version of pPresentationInfo.