Class VkConformanceVersion

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
Direct Known Subclasses:
VkConformanceVersionKHR

public class VkConformanceVersion extends Struct<VkConformanceVersion> implements NativeResource

 struct VkConformanceVersion {
     uint8_t major;
     uint8_t minor;
     uint8_t subminor;
     uint8_t patch;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int MAJOR
      The struct member offsets.
    • MINOR

      public static final int MINOR
      The struct member offsets.
    • SUBMINOR

      public static final int SUBMINOR
      The struct member offsets.
    • PATCH

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

    • VkConformanceVersion

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

      public byte major()
      Returns:
      the value of the major field.
    • minor

      public byte minor()
      Returns:
      the value of the minor field.
    • subminor

      public byte subminor()
      Returns:
      the value of the subminor field.
    • patch

      public byte patch()
      Returns:
      the value of the patch field.
    • major

      public VkConformanceVersion major(byte value)
      Sets the specified value to the major field.
    • minor

      public VkConformanceVersion minor(byte value)
      Sets the specified value to the minor field.
    • subminor

      public VkConformanceVersion subminor(byte value)
      Sets the specified value to the subminor field.
    • patch

      public VkConformanceVersion patch(byte value)
      Sets the specified value to the patch field.
    • set

      public VkConformanceVersion set(byte major, byte minor, byte subminor, byte patch)
      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 VkConformanceVersion malloc()
      Returns a new VkConformanceVersion instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static byte nmajor(long struct)
      Unsafe version of major().
    • nminor

      public static byte nminor(long struct)
      Unsafe version of minor().
    • nsubminor

      public static byte nsubminor(long struct)
      Unsafe version of subminor().
    • npatch

      public static byte npatch(long struct)
      Unsafe version of patch().
    • nmajor

      public static void nmajor(long struct, byte value)
      Unsafe version of major.
    • nminor

      public static void nminor(long struct, byte value)
      Unsafe version of minor.
    • nsubminor

      public static void nsubminor(long struct, byte value)
      Unsafe version of subminor.
    • npatch

      public static void npatch(long struct, byte value)
      Unsafe version of patch.