Class XrVulkanInstanceCreateInfoKHR

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrVulkanInstanceCreateInfoKHR>
org.lwjgl.openxr.XrVulkanInstanceCreateInfoKHR
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrVulkanInstanceCreateInfoKHR extends org.lwjgl.system.Struct<XrVulkanInstanceCreateInfoKHR> 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 Details

    • SIZEOF

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

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

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • SYSTEMID

      public static final int SYSTEMID
      The struct member offsets.
    • CREATEFLAGS

      public static final int CREATEFLAGS
      The struct member offsets.
    • PFNGETINSTANCEPROCADDR

      public static final int PFNGETINSTANCEPROCADDR
      The struct member offsets.
    • VULKANCREATEINFO

      public static final int VULKANCREATEINFO
      The struct member offsets.
    • VULKANALLOCATOR

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

    • XrVulkanInstanceCreateInfoKHR

      public XrVulkanInstanceCreateInfoKHR(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 Details

    • sizeof

      public int sizeof()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<XrVulkanInstanceCreateInfoKHR>
    • type

      public int type()
      the XrStructureType of this structure.
    • next

      public long next()
      NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension
    • systemId

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

      public long createFlags()
      a bitmask of XrVulkanInstanceCreateFlagBitsKHR
    • pfnGetInstanceProcAddr

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

      public org.lwjgl.vulkan.VkInstanceCreateInfo vulkanCreateInfo()
    • vulkanAllocator

      public @Nullable org.lwjgl.vulkan.VkAllocationCallbacks vulkanAllocator()
    • type

      public XrVulkanInstanceCreateInfoKHR type(int value)
      Sets the specified value to the type() field.
    • type$Default

      public XrVulkanInstanceCreateInfoKHR type$Default()
      Sets the TYPE_VULKAN_INSTANCE_CREATE_INFO_KHR value to the type() field.
    • next

      public XrVulkanInstanceCreateInfoKHR next(long value)
      Sets the specified value to the next() field.
    • systemId

      public XrVulkanInstanceCreateInfoKHR systemId(long value)
      Sets the specified value to the systemId() field.
    • createFlags

      public XrVulkanInstanceCreateInfoKHR createFlags(long value)
      Sets the specified value to the createFlags() field.
    • pfnGetInstanceProcAddr

      public XrVulkanInstanceCreateInfoKHR pfnGetInstanceProcAddr(long value)
      Sets the specified value to the pfnGetInstanceProcAddr() field.
    • vulkanCreateInfo

      public XrVulkanInstanceCreateInfoKHR vulkanCreateInfo(org.lwjgl.vulkan.VkInstanceCreateInfo value)
      Sets the address of the specified VkInstanceCreateInfo to the vulkanCreateInfo() field.
    • vulkanAllocator

      public XrVulkanInstanceCreateInfoKHR vulkanAllocator(@Nullable org.lwjgl.vulkan.VkAllocationCallbacks value)
      Sets the address of the specified VkAllocationCallbacks to the vulkanAllocator() field.
    • 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.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • 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()
      Returns a new XrVulkanInstanceCreateInfoKHR instance allocated with BufferUtils.
    • create

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

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

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

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

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

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

      public static @Nullable XrVulkanInstanceCreateInfoKHR.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • 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
    • malloc

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

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

      public static @Nullable 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