Class XrVulkanInstanceCreateInfoKHR

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

    public class XrVulkanInstanceCreateInfoKHR
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Vulkan Instance Create Info.
    Valid Usage (Implicit)
    See Also

    CreateVulkanInstanceKHR

    Layout

    
     struct XrVulkanInstanceCreateInfoKHR {
         XrStructureType type;
         void const * next;
         XrSystemId systemId();
         XrVulkanInstanceCreateFlagsKHR createFlags;
         PFN_vkGetInstanceProcAddr pfnGetInstanceProcAddr();
         VkInstanceCreateInfo const * vulkanCreateInfo();
         VkAllocationCallbacks const * vulkanAllocator();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • TYPE, NEXT, SYSTEMID, CREATEFLAGS, PFNGETINSTANCEPROCADDR, VULKANCREATEINFO, VULKANALLOCATOR

        The struct member offsets.
    • Constructor Detail

      • XrVulkanInstanceCreateInfoKHR

        public XrVulkanInstanceCreateInfoKHR​(java.nio.ByteBuffer container)
        Creates a XrVulkanInstanceCreateInfoKHR 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
      • type

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

        public long next()
        Returns:
        the value of the next field.
      • systemId

        public long systemId()
        an XrSystemId handle for the system which will be used to create a session.
      • createFlags

        public long createFlags()
        Returns:
        the value of the createFlags field.
      • pfnGetInstanceProcAddr

        public long pfnGetInstanceProcAddr()
        a function pointer to vkGetInstanceProcAddr or a compatible entry point.
      • set

        public XrVulkanInstanceCreateInfoKHR set​(int type,
                                                 long next,
                                                 long systemId,
                                                 long createFlags,
                                                 long pfnGetInstanceProcAddr,
                                                 org.lwjgl.vulkan.VkInstanceCreateInfo vulkanCreateInfo,
                                                 @Nullable
                                                 org.lwjgl.vulkan.VkAllocationCallbacks vulkanAllocator)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

        public static long nnext​(long struct)
        Unsafe version of next().
      • nsystemId

        public static long nsystemId​(long struct)
        Unsafe version of systemId().
      • ncreateFlags

        public static long ncreateFlags​(long struct)
        Unsafe version of createFlags().
      • npfnGetInstanceProcAddr

        public static long npfnGetInstanceProcAddr​(long struct)
        Unsafe version of pfnGetInstanceProcAddr().
      • nvulkanCreateInfo

        public static org.lwjgl.vulkan.VkInstanceCreateInfo nvulkanCreateInfo​(long struct)
        Unsafe version of vulkanCreateInfo().
      • nvulkanAllocator

        @Nullable
        public static org.lwjgl.vulkan.VkAllocationCallbacks nvulkanAllocator​(long struct)
        Unsafe version of vulkanAllocator().
      • ntype

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

        public static void nnext​(long struct,
                                 long value)
        Unsafe version of next.
      • nsystemId

        public static void nsystemId​(long struct,
                                     long value)
        Unsafe version of systemId.
      • ncreateFlags

        public static void ncreateFlags​(long struct,
                                        long value)
        Unsafe version of createFlags.
      • npfnGetInstanceProcAddr

        public static void npfnGetInstanceProcAddr​(long struct,
                                                   long value)
        Unsafe version of pfnGetInstanceProcAddr.
      • nvulkanCreateInfo

        public static void nvulkanCreateInfo​(long struct,
                                             org.lwjgl.vulkan.VkInstanceCreateInfo value)
        Unsafe version of vulkanCreateInfo.
      • nvulkanAllocator

        public static void nvulkanAllocator​(long struct,
                                            @Nullable
                                            org.lwjgl.vulkan.VkAllocationCallbacks value)
        Unsafe version of vulkanAllocator.
      • validate

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