When creating a Vulkan-backed XrSession, the application will provide a pointer to an XrGraphicsBindingVulkanKHR in the next chain of the XrSessionCreateInfo.
instance must have enabled a Vulkan API version in the range specified by XrGraphicsBindingVulkanKHRinstance must have enabled all the instance extensions specified by GetVulkanInstanceExtensionsKHRphysicalDevice VkPhysicalDevice must match the device specified by GetVulkanGraphicsDeviceKHRdevice must have enabled all the device extensions specified by GetVulkanDeviceExtensionsKHRXR_KHR_vulkan_enable extension must be enabled prior to using XrGraphicsBindingVulkanKHRtype must be TYPE_GRAPHICS_BINDING_VULKAN_KHRnext must be NULL or a valid pointer to the next structure in a structure chaininstance must be a valid VkInstance valuephysicalDevice must be a valid VkPhysicalDevice valuedevice must be a valid VkDevice value
struct XrGraphicsBindingVulkanKHR {
XrStructureType type;
void const * next;
VkInstance instance;
VkPhysicalDevice physicalDevice;
VkDevice device;
uint32_t queueFamilyIndex;
uint32_t queueIndex;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrGraphicsBindingVulkanKHR.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | DEVICE
The struct member offsets. |
| public static final int | INSTANCE
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | PHYSICALDEVICE
The struct member offsets. |
| public static final int | QUEUEFAMILYINDEX
The struct member offsets. |
| public static final int | QUEUEINDEX
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | TYPE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrGraphicsBindingVulkanKHR(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static XrGraphicsBindingVulkanKHR | |
| public static XrGraphicsBindingVulkanKHR. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrGraphicsBindingVulkanKHR | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrGraphicsBindingVulkanKHR. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrGraphicsBindingVulkanKHR | 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 XrGraphicsBindingVulkanKHR | |
| public static XrGraphicsBindingVulkanKHR | create(long address)
Returns a new |
| public static XrGraphicsBindingVulkanKHR. | create(int
the buffer capacity capacity)Returns a new |
| public static XrGraphicsBindingVulkanKHR. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrGraphicsBindingVulkanKHR | |
| public static XrGraphicsBindingVulkanKHR. | |
| public long | |
| public XrGraphicsBindingVulkanKHR | |
| public long | |
| public XrGraphicsBindingVulkanKHR | |
| public static XrGraphicsBindingVulkanKHR | |
| public static XrGraphicsBindingVulkanKHR. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrGraphicsBindingVulkanKHR | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrGraphicsBindingVulkanKHR. | 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 XrGraphicsBindingVulkanKHR | |
| 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 int | |
| public static void | |
| public static int | |
| public static void | |
| public long | |
| public XrGraphicsBindingVulkanKHR | |
| public int | |
| public XrGraphicsBindingVulkanKHR | |
| public int | |
| public XrGraphicsBindingVulkanKHR | |
| public XrGraphicsBindingVulkanKHR | set(int type, long next, VkInstance instance, VkPhysicalDevice physicalDevice, VkDevice device, int queueFamilyIndex, int queueIndex)
Initializes this struct with the specified values. |
| public XrGraphicsBindingVulkanKHR | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrGraphicsBindingVulkanKHR | |
| public XrGraphicsBindingVulkanKHR | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| DEVICE | back to summary |
|---|---|
| public static final int DEVICE The struct member offsets. | |
| INSTANCE | back to summary |
|---|---|
| public static final int INSTANCE The struct member offsets. | |
| NEXT | back to summary |
|---|---|
| public static final int NEXT The struct member offsets. | |
| PHYSICALDEVICE | back to summary |
|---|---|
| public static final int PHYSICALDEVICE The struct member offsets. | |
| QUEUEFAMILYINDEX | back to summary |
|---|---|
| public static final int QUEUEFAMILYINDEX The struct member offsets. | |
| QUEUEINDEX | back to summary |
|---|---|
| public static final int QUEUEINDEX The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| TYPE | back to summary |
|---|---|
| public static final int TYPE The struct member offsets. | |
| XrGraphicsBindingVulkanKHR | back to summary |
|---|---|
| protected XrGraphicsBindingVulkanKHR(long address, ByteBuffer container) | |
| XrGraphicsBindingVulkanKHR | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR. Returns a new
| |
| create | back to summary |
|---|---|
| protected XrGraphicsBindingVulkanKHR create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR create() Returns a new | |
| create | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR. Returns a new
| |
| create | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR. Create a
| |
| createSafe | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR. Like
| |
| device | back to summary |
|---|---|
| public long device() a valid Vulkan
| |
| device | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR device(VkDevice value) Sets the specified value to the | |
| instance | back to summary |
|---|---|
| public long instance() a valid Vulkan
| |
| instance | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR instance(VkInstance value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static XrGraphicsBindingVulkanKHR. Returns a new
| |
| ndevice | back to summary |
|---|---|
| public static long ndevice(long struct) Unsafe version of | |
| ndevice | back to summary |
|---|---|
| public static void ndevice(long struct, VkDevice value) Unsafe version of | |
| next | back to summary |
|---|---|
| public long next()
| |
| next | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR next(long value) Sets the specified value to the | |
| ninstance | back to summary |
|---|---|
| public static long ninstance(long struct) Unsafe version of | |
| ninstance | back to summary |
|---|---|
| public static void ninstance(long struct, VkInstance value) Unsafe version of | |
| 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 | |
| nphysicalDevice | back to summary |
|---|---|
| public static long nphysicalDevice(long struct) Unsafe version of | |
| nphysicalDevice | back to summary |
|---|---|
| public static void nphysicalDevice(long struct, VkPhysicalDevice value) Unsafe version of | |
| nqueueFamilyIndex | back to summary |
|---|---|
| public static int nqueueFamilyIndex(long struct) Unsafe version of | |
| nqueueFamilyIndex | back to summary |
|---|---|
| public static void nqueueFamilyIndex(long struct, int value) Unsafe version of | |
| nqueueIndex | back to summary |
|---|---|
| public static int nqueueIndex(long struct) Unsafe version of | |
| nqueueIndex | back to summary |
|---|---|
| public static void nqueueIndex(long struct, int 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 | |
| physicalDevice | back to summary |
|---|---|
| public long physicalDevice() a valid Vulkan
| |
| physicalDevice | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR physicalDevice(VkPhysicalDevice value) Sets the specified value to the | |
| queueFamilyIndex | back to summary |
|---|---|
| public int queueFamilyIndex() a valid queue family index on
| |
| queueFamilyIndex | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR queueFamilyIndex(int value) Sets the specified value to the | |
| queueIndex | back to summary |
|---|---|
| public int queueIndex() a valid queue index on
| |
| queueIndex | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR queueIndex(int value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR set(int type, long next, VkInstance instance, VkPhysicalDevice physicalDevice, VkDevice device, int queueFamilyIndex, int queueIndex) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR set(XrGraphicsBindingVulkanKHR src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| type | back to summary |
|---|---|
| public int type() the
| |
| type | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR type(int value) Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR type$Default() Sets the | |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
XrGraphicsBindingVulkanKHR structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final XrGraphicsBindingVulkanKHR |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public XrGraphicsBindingVulkanKHR. | |
| protected XrGraphicsBindingVulkanKHR | |
| public long | |
| public XrGraphicsBindingVulkanKHR. | instance(VkInstance value)
Sets the specified value to the |
| public long | |
| public XrGraphicsBindingVulkanKHR. | |
| public long | |
| public XrGraphicsBindingVulkanKHR. | physicalDevice(VkPhysicalDevice value)
Sets the specified value to the |
| public int | |
| public XrGraphicsBindingVulkanKHR. | queueFamilyIndex(int value)
Sets the specified value to the |
| public int | |
| public XrGraphicsBindingVulkanKHR. | |
| protected XrGraphicsBindingVulkanKHR. | |
| public int | |
| public XrGraphicsBindingVulkanKHR. | |
| public XrGraphicsBindingVulkanKHR. | type$Default()
Sets the |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final XrGraphicsBindingVulkanKHR 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) | |
| device | back to summary |
|---|---|
public long device()
| |
| device | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected XrGraphicsBindingVulkanKHR getElementFactory() Implements abstract org.
| |
| instance | back to summary |
|---|---|
public long instance()
| |
| instance | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR. Sets the specified value to the | |
| next | back to summary |
|---|---|
public long next()
| |
| next | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR. Sets the specified value to the | |
| physicalDevice | back to summary |
|---|---|
public long physicalDevice()
| |
| physicalDevice | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR. Sets the specified value to the | |
| queueFamilyIndex | back to summary |
|---|---|
public int queueFamilyIndex()
| |
| queueFamilyIndex | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR. Sets the specified value to the | |
| queueIndex | back to summary |
|---|---|
public int queueIndex()
| |
| queueIndex | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected XrGraphicsBindingVulkanKHR. Implements abstract org.
| |
| type | back to summary |
|---|---|
public int type()
| |
| type | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR. Sets the specified value to the | |
| type$Default | back to summary |
|---|---|
| public XrGraphicsBindingVulkanKHR. Sets the | |