Class VkConformanceVersionKHR

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class VkConformanceVersionKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure containing the conformance test suite version the implementation is compliant with.

    Member documentation

    • major – the major version number of the conformance test suite.
    • minor – the minor version number of the conformance test suite.
    • subminor – the subminor version number of the conformance test suite.
    • patch – the patch version number of the conformance test suite.

    Layout

    
     struct VkConformanceVersionKHR {
         uint8_t major;
         uint8_t minor;
         uint8_t subminor;
         uint8_t patch;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MAJOR, MINOR, SUBMINOR, PATCH

        The struct member offsets.
    • Constructor Detail

      • VkConformanceVersionKHR

        public VkConformanceVersionKHR​(java.nio.ByteBuffer container)
        Creates a VkConformanceVersionKHR 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 Detail

      • sizeof

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

        public VkConformanceVersionKHR subminor​(byte value)
        Sets the specified value to the subminor field.
      • set

        public VkConformanceVersionKHR set​(byte major,
                                           byte minor,
                                           byte subminor,
                                           byte patch)
        Initializes this struct with the specified values.
      • malloc

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

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

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

        public static VkConformanceVersionKHR create​(long address)
        Returns a new VkConformanceVersionKHR instance for the specified memory address.
      • mallocStack

        public static VkConformanceVersionKHR mallocStack()
        Returns a new VkConformanceVersionKHR instance allocated on the thread-local MemoryStack.
      • callocStack

        public static VkConformanceVersionKHR callocStack()
        Returns a new VkConformanceVersionKHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static VkConformanceVersionKHR mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkConformanceVersionKHR instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static VkConformanceVersionKHR callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkConformanceVersionKHR instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • mallocStack

        public static VkConformanceVersionKHR.Buffer mallocStack​(int capacity,
                                                                 org.lwjgl.system.MemoryStack stack)
        Returns a new VkConformanceVersionKHR.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static VkConformanceVersionKHR.Buffer callocStack​(int capacity,
                                                                 org.lwjgl.system.MemoryStack stack)
        Returns a new VkConformanceVersionKHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • 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.