Class VkConformanceVersion

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkConformanceVersion>
org.lwjgl.vulkan.VkConformanceVersion
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer
Direct Known Subclasses:
VkConformanceVersionKHR

public class VkConformanceVersion extends org.lwjgl.system.Struct<VkConformanceVersion> implements org.lwjgl.system.NativeResource
Structure containing the conformance test suite version the implementation is compliant with.
See Also

VkPhysicalDeviceDriverProperties, VkPhysicalDeviceVulkan12Properties

Layout


 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<VkConformanceVersion>
    • major

      public byte major()
      the major version number of the conformance test suite.
    • minor

      public byte minor()
      the minor version number of the conformance test suite.
    • subminor

      public byte subminor()
      the subminor version number of the conformance test suite.
    • patch

      public byte patch()
      the patch version number of the conformance test suite.
    • 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(org.lwjgl.system.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(org.lwjgl.system.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, org.lwjgl.system.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, org.lwjgl.system.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.