Class VkLayerSettingEXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkLayerSettingEXT extends Struct<VkLayerSettingEXT> implements NativeResource

 struct VkLayerSettingEXT {
     char const * pLayerName;
     char const * pSettingName;
     VkLayerSettingTypeEXT type;
     uint32_t valueCount;
     void const * pValues;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int PLAYERNAME
      The struct member offsets.
    • PSETTINGNAME

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

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

      public static final int VALUECOUNT
      The struct member offsets.
    • PVALUES

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

    • VkLayerSettingEXT

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

      public ByteBuffer pLayerName()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the pLayerName field.
    • pLayerNameString

      public String pLayerNameString()
      Returns:
      the null-terminated string pointed to by the pLayerName field.
    • pSettingName

      public ByteBuffer pSettingName()
      Returns:
      a ByteBuffer view of the null-terminated string pointed to by the pSettingName field.
    • pSettingNameString

      public String pSettingNameString()
      Returns:
      the null-terminated string pointed to by the pSettingName field.
    • type

      public int type()
      Returns:
      the value of the type field.
    • valueCount

      public int valueCount()
      Returns:
      the value of the valueCount field.
    • pValues

      public @Nullable ByteBuffer pValues(int capacity)
      Returns:
      a ByteBuffer view of the data pointed to by the pValues field.
    • pLayerName

      public VkLayerSettingEXT pLayerName(ByteBuffer value)
      Sets the address of the specified encoded string to the pLayerName field.
    • pSettingName

      public VkLayerSettingEXT pSettingName(ByteBuffer value)
      Sets the address of the specified encoded string to the pSettingName field.
    • type

      public VkLayerSettingEXT type(int value)
      Sets the specified value to the type field.
    • valueCount

      public VkLayerSettingEXT valueCount(int value)
      Sets the specified value to the valueCount field.
    • pValues

      public VkLayerSettingEXT pValues(@Nullable ByteBuffer value)
      Sets the address of the specified ByteBuffer to the pValues field.
    • set

      public VkLayerSettingEXT set(ByteBuffer pLayerName, ByteBuffer pSettingName, int type, int valueCount, @Nullable ByteBuffer pValues)
      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 VkLayerSettingEXT malloc()
      Returns a new VkLayerSettingEXT instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static ByteBuffer npLayerName(long struct)
      Unsafe version of pLayerName().
    • npLayerNameString

      public static String npLayerNameString(long struct)
      Unsafe version of pLayerNameString().
    • npSettingName

      public static ByteBuffer npSettingName(long struct)
      Unsafe version of pSettingName().
    • npSettingNameString

      public static String npSettingNameString(long struct)
      Unsafe version of pSettingNameString().
    • ntype

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

      public static int nvalueCount(long struct)
      Unsafe version of valueCount().
    • npValues

      public static @Nullable ByteBuffer npValues(long struct, int capacity)
      Unsafe version of pValues.
    • npLayerName

      public static void npLayerName(long struct, ByteBuffer value)
      Unsafe version of pLayerName.
    • npSettingName

      public static void npSettingName(long struct, ByteBuffer value)
      Unsafe version of pSettingName.
    • ntype

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

      public static void nvalueCount(long struct, int value)
      Unsafe version of valueCount.
    • npValues

      public static void npValues(long struct, @Nullable ByteBuffer value)
      Unsafe version of pValues.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate