If the vulkanPhysicalDevice parameter does not match the output of GetVulkanGraphicsDeviceKHR, then the runtime must return ERROR_HANDLE_INVALID.
XR_KHR_vulkan_enable2 extension must be enabled prior to using XrVulkanDeviceCreateInfoKHRtype must be TYPE_VULKAN_DEVICE_CREATE_INFO_KHRnext must be NULL or a valid pointer to the next structure in a structure chaincreateFlags must be 0pfnGetInstanceProcAddr must be a valid PFN_vkGetInstanceProcAddr valuevulkanPhysicalDevice must be a valid VkPhysicalDevice valuevulkanCreateInfo must be a pointer to a valid VkDeviceCreateInfo valuevulkanAllocator is not NULL, vulkanAllocator must be a pointer to a valid VkAllocationCallbacks value
struct XrVulkanDeviceCreateInfoKHR {
XrStructureType type;
void const * next;
XrSystemId systemId;
XrVulkanDeviceCreateFlagsKHR createFlags;
PFN_vkGetInstanceProcAddr pfnGetInstanceProcAddr;
VkPhysicalDevice vulkanPhysicalDevice;
VkDeviceCreateInfo const * vulkanCreateInfo;
VkAllocationCallbacks const * vulkanAllocator;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrVulkanDeviceCreateInfoKHR.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CREATEFLAGS
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | PFNGETINSTANCEPROCADDR
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SYSTEMID
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | VULKANALLOCATOR
The struct member offsets. |
| public static final int | VULKANCREATEINFO
The struct member offsets. |
| public static final int | VULKANPHYSICALDEVICE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrVulkanDeviceCreateInfoKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR | |
| public static XrVulkanDeviceCreateInfoKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrVulkanDeviceCreateInfoKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrVulkanDeviceCreateInfoKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrVulkanDeviceCreateInfoKHR | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrVulkanDeviceCreateInfoKHR | |
| public static XrVulkanDeviceCreateInfoKHR | create(long address)
Returns a new |
| public static XrVulkanDeviceCreateInfoKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static XrVulkanDeviceCreateInfoKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public long | |
| public XrVulkanDeviceCreateInfoKHR | |
| public static XrVulkanDeviceCreateInfoKHR | |
| public static XrVulkanDeviceCreateInfoKHR. | |
| public static XrVulkanDeviceCreateInfoKHR | |
| public static XrVulkanDeviceCreateInfoKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrVulkanDeviceCreateInfoKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrVulkanDeviceCreateInfoKHR. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static long | |
| public static void | |
| public long | |
| public XrVulkanDeviceCreateInfoKHR | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static VkAllocationCallbacks | |
| public static void | |
| public static VkDeviceCreateInfo | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public XrVulkanDeviceCreateInfoKHR | |
| public XrVulkanDeviceCreateInfoKHR | set(int type, long next, long systemId, long createFlags, long pfnGetInstanceProcAddr, VkPhysicalDevice vulkanPhysicalDevice, VkDeviceCreateInfo vulkanCreateInfo, VkAllocationCallbacks vulkanAllocator)
Initializes this struct with the specified values. |
| public XrVulkanDeviceCreateInfoKHR | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public XrVulkanDeviceCreateInfoKHR | |
| public int | |
| public XrVulkanDeviceCreateInfoKHR | |
| public XrVulkanDeviceCreateInfoKHR | |
| public static void | |
| public VkAllocationCallbacks | |
| public XrVulkanDeviceCreateInfoKHR | vulkanAllocator(VkAllocationCallbacks value)
Sets the address of the specified |
| public VkDeviceCreateInfo | |
| public XrVulkanDeviceCreateInfoKHR | vulkanCreateInfo(VkDeviceCreateInfo value)
Sets the address of the specified |
| public long | |
| public XrVulkanDeviceCreateInfoKHR | vulkanPhysicalDevice(VkPhysicalDevice value)
Sets the specified value to the |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CREATEFLAGS | back to summary |
|---|---|
| public static final int CREATEFLAGS The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| PFNGETINSTANCEPROCADDR | back to summary |
|---|---|
| public static final int PFNGETINSTANCEPROCADDR The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SYSTEMID | back to summary |
|---|---|
| public static final int SYSTEMID The struct member offsets. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| VULKANALLOCATOR | back to summary |
|---|---|
| public static final int VULKANALLOCATOR The struct member offsets. | |
| VULKANCREATEINFO | back to summary |
|---|---|
| public static final int VULKANCREATEINFO The struct member offsets. | |
| VULKANPHYSICALDEVICE | back to summary |
|---|---|
| public static final int VULKANPHYSICALDEVICE The struct member offsets. | |
| XrVulkanDeviceCreateInfoKHR | back to summary |
|---|---|
| protected XrVulkanDeviceCreateInfoKHR(long address, ByteBuffer container) | |
| XrVulkanDeviceCreateInfoKHR | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrVulkanDeviceCreateInfoKHR create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR. Create a
| |
| createFlags | back to summary |
|---|---|
| public long createFlags() a bitmask of
| |
| createFlags | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR createFlags(long value) Sets the specified value to the | |
| createSafe | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR. Like
| |
| malloc | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrVulkanDeviceCreateInfoKHR. Returns a new
| |
| ncreateFlags | back to summary |
|---|---|
| public static long ncreateFlags(long struct) Unsafe version of | |
| ncreateFlags | back to summary |
|---|---|
| public static void ncreateFlags(long struct, long value) Unsafe version of | |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR next(long value) Sets the specified value to the | |
| nnext | back to summary |
|---|---|
| public static long nnext(long struct) Unsafe version of | |
| nnext | back to summary |
|---|---|
| public static void nnext(long struct, long value) Unsafe version of | |
| npfnGetInstanceProcAddr | back to summary |
|---|---|
| public static long npfnGetInstanceProcAddr(long struct) Unsafe version of | |
| npfnGetInstanceProcAddr | back to summary |
|---|---|
| public static void npfnGetInstanceProcAddr(long struct, long value) Unsafe version of | |
| nsystemId | back to summary |
|---|---|
| public static long nsystemId(long struct) Unsafe version of | |
| nsystemId | back to summary |
|---|---|
| public static void nsystemId(long struct, long value) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static int ntype(long struct) Unsafe version of | |
| ntype | back to summary |
|---|---|
| public static void ntype(long struct, int value) Unsafe version of | |
| nvulkanAllocator | back to summary |
|---|---|
| public static VkAllocationCallbacks nvulkanAllocator(long struct) Unsafe version of
| |
| nvulkanAllocator | back to summary |
|---|---|
| public static void nvulkanAllocator(long struct, VkAllocationCallbacks value) Unsafe version of | |
| nvulkanCreateInfo | back to summary |
|---|---|
| public static VkDeviceCreateInfo nvulkanCreateInfo(long struct) Unsafe version of | |
| nvulkanCreateInfo | back to summary |
|---|---|
| public static void nvulkanCreateInfo(long struct, VkDeviceCreateInfo value) Unsafe version of | |
| nvulkanPhysicalDevice | back to summary |
|---|---|
| public static long nvulkanPhysicalDevice(long struct) Unsafe version of | |
| nvulkanPhysicalDevice | back to summary |
|---|---|
| public static void nvulkanPhysicalDevice(long struct, VkPhysicalDevice value) Unsafe version of | |
| pfnGetInstanceProcAddr | back to summary |
|---|---|
| public long pfnGetInstanceProcAddr() a function pointer to
| |
| pfnGetInstanceProcAddr | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR pfnGetInstanceProcAddr(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR set(int type, long next, long systemId, long createFlags, long pfnGetInstanceProcAddr, VkPhysicalDevice vulkanPhysicalDevice, VkDeviceCreateInfo vulkanCreateInfo, VkAllocationCallbacks vulkanAllocator) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR set(XrVulkanDeviceCreateInfoKHR src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| systemId | back to summary |
|---|---|
| public long systemId() an
| |
| systemId | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR systemId(long value) Sets the specified value to the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR type$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
| vulkanAllocator | back to summary |
|---|---|
| public VkAllocationCallbacks vulkanAllocator() the
| |
| vulkanAllocator | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR vulkanAllocator(VkAllocationCallbacks value) Sets the address of the specified | |
| vulkanCreateInfo | back to summary |
|---|---|
| public VkDeviceCreateInfo vulkanCreateInfo() the
| |
| vulkanCreateInfo | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR vulkanCreateInfo(VkDeviceCreateInfo value) Sets the address of the specified | |
| vulkanPhysicalDevice | back to summary |
|---|---|
| public long vulkanPhysicalDevice() must match
| |
| vulkanPhysicalDevice | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR vulkanPhysicalDevice(VkPhysicalDevice value) Sets the specified value to the | |
XrVulkanDeviceCreateInfoKHR structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrVulkanDeviceCreateInfoKHR |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrVulkanDeviceCreateInfoKHR ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| createFlags | back to summary |
|---|---|
public long createFlags()
| |
| createFlags | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XrVulkanDeviceCreateInfoKHR getElementFactory() Implements abstract org.
| |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR. Sets the specified value to the | |
| pfnGetInstanceProcAddr | back to summary |
|---|---|
public long pfnGetInstanceProcAddr()
| |
| pfnGetInstanceProcAddr | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrVulkanDeviceCreateInfoKHR. Implements abstract org.
| |
| systemId | back to summary |
|---|---|
public long systemId()
| |
| systemId | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR. Sets the specified value to the | |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR. Sets the | |
| vulkanAllocator | back to summary |
|---|---|
public VkAllocationCallbacks vulkanAllocator()
| |
| vulkanAllocator | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR. Sets the address of the specified | |
| vulkanCreateInfo | back to summary |
|---|---|
public VkDeviceCreateInfo vulkanCreateInfo()
| |
| vulkanCreateInfo | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR. Sets the address of the specified | |
| vulkanPhysicalDevice | back to summary |
|---|---|
public long vulkanPhysicalDevice()
| |
| vulkanPhysicalDevice | back to summary |
|---|---|
| public XrVulkanDeviceCreateInfoKHR. Sets the specified value to the | |