Class XrVulkanDeviceCreateInfoKHR

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

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

    CreateVulkanDeviceKHR

    Layout

    
     struct XrVulkanDeviceCreateInfoKHR {
         XrStructureType type;
         void const * next;
         XrSystemId systemId();
         XrVulkanDeviceCreateFlagsKHR createFlags;
         PFN_vkGetInstanceProcAddr pfnGetInstanceProcAddr();
         VkPhysicalDevice vulkanPhysicalDevice();
         VkDeviceCreateInfo const * vulkanCreateInfo();
         VkAllocationCallbacks const * vulkanAllocator();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

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

        The struct member offsets.
    • Constructor Detail

      • XrVulkanDeviceCreateInfoKHR

        public XrVulkanDeviceCreateInfoKHR​(java.nio.ByteBuffer container)
        Creates a XrVulkanDeviceCreateInfoKHR 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 XrVulkanDeviceCreateInfoKHR set​(int type,
                                               long next,
                                               long systemId,
                                               long createFlags,
                                               long pfnGetInstanceProcAddr,
                                               org.lwjgl.vulkan.VkPhysicalDevice vulkanPhysicalDevice,
                                               org.lwjgl.vulkan.VkDeviceCreateInfo vulkanCreateInfo,
                                               @Nullable
                                               org.lwjgl.vulkan.VkAllocationCallbacks vulkanAllocator)
        Initializes this struct with the specified values.
      • malloc

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

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

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

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

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

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

        public static XrVulkanDeviceCreateInfoKHR.Buffer calloc​(int capacity,
                                                                org.lwjgl.system.MemoryStack stack)
        Returns a new XrVulkanDeviceCreateInfoKHR.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
      • 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().
      • nvulkanPhysicalDevice

        public static long nvulkanPhysicalDevice​(long struct)
        Unsafe version of vulkanPhysicalDevice().
      • nvulkanCreateInfo

        public static org.lwjgl.vulkan.VkDeviceCreateInfo 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.
      • nvulkanPhysicalDevice

        public static void nvulkanPhysicalDevice​(long struct,
                                                 org.lwjgl.vulkan.VkPhysicalDevice value)
        Unsafe version of vulkanPhysicalDevice.
      • nvulkanCreateInfo

        public static void nvulkanCreateInfo​(long struct,
                                             org.lwjgl.vulkan.VkDeviceCreateInfo 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