Package org.lwjgl.openxr
Class XrGraphicsBindingVulkan2KHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrGraphicsBindingVulkanKHR>
org.lwjgl.openxr.XrGraphicsBindingVulkanKHR
org.lwjgl.openxr.XrGraphicsBindingVulkan2KHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrGraphicsBindingVulkan2KHR {
XrStructureType type;
void const * next;
VkInstance instance;
VkPhysicalDevice physicalDevice;
VkDevice device;
uint32_t queueFamilyIndex;
uint32_t queueIndex;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Fields inherited from class org.lwjgl.openxr.XrGraphicsBindingVulkanKHR
ALIGNOF, DEVICE, INSTANCE, NEXT, PHYSICALDEVICE, QUEUEFAMILYINDEX, QUEUEINDEX, SIZEOF, TYPE
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrGraphicsBindingVulkan2KHR
(ByteBuffer container) Creates aXrGraphicsBindingVulkan2KHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrGraphicsBindingVulkan2KHR
calloc()
Returns a newXrGraphicsBindingVulkan2KHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newXrGraphicsBindingVulkan2KHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newXrGraphicsBindingVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrGraphicsBindingVulkan2KHR
calloc
(MemoryStack stack) Returns a newXrGraphicsBindingVulkan2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrGraphicsBindingVulkan2KHR
create()
Returns a newXrGraphicsBindingVulkan2KHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newXrGraphicsBindingVulkan2KHR.Buffer
instance allocated withBufferUtils
.static XrGraphicsBindingVulkan2KHR
create
(long address) Returns a newXrGraphicsBindingVulkan2KHR
instance for the specified memory address.create
(long address, int capacity) Create aXrGraphicsBindingVulkan2KHR.Buffer
instance at the specified memory.static @Nullable XrGraphicsBindingVulkan2KHR
createSafe
(long address) static @Nullable XrGraphicsBindingVulkan2KHR.Buffer
createSafe
(long address, int capacity) Sets the specified value to thedevice
field.instance
(VkInstance value) Sets the specified value to theinstance
field.static XrGraphicsBindingVulkan2KHR
malloc()
Returns a newXrGraphicsBindingVulkan2KHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newXrGraphicsBindingVulkan2KHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newXrGraphicsBindingVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
.static XrGraphicsBindingVulkan2KHR
malloc
(MemoryStack stack) Returns a newXrGraphicsBindingVulkan2KHR
instance allocated on the specifiedMemoryStack
.next
(long value) Sets the specified value to thenext
field.physicalDevice
(VkPhysicalDevice value) Sets the specified value to thephysicalDevice
field.queueFamilyIndex
(int value) Sets the specified value to thequeueFamilyIndex
field.queueIndex
(int value) Sets the specified value to thequeueIndex
field.set
(int type, long next, VkInstance instance, VkPhysicalDevice physicalDevice, VkDevice device, int queueFamilyIndex, int queueIndex) Initializes this struct with the specified values.Copies the specified struct data to this struct.type
(int value) Sets the specified value to thetype
field.Sets theTYPE_GRAPHICS_BINDING_VULKAN_KHR
value to thetype
field.Methods inherited from class org.lwjgl.openxr.XrGraphicsBindingVulkanKHR
device, instance, ndevice, ndevice, next, ninstance, ninstance, nnext, nnext, nphysicalDevice, nphysicalDevice, nqueueFamilyIndex, nqueueFamilyIndex, nqueueIndex, nqueueIndex, ntype, ntype, physicalDevice, queueFamilyIndex, queueIndex, set, sizeof, type, validate
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
XrGraphicsBindingVulkan2KHR
Creates aXrGraphicsBindingVulkan2KHR
instance at the current position of the specifiedByteBuffer
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
-
type
Sets the specified value to thetype
field.- Overrides:
type
in classXrGraphicsBindingVulkanKHR
-
type$Default
Sets theTYPE_GRAPHICS_BINDING_VULKAN_KHR
value to thetype
field.- Overrides:
type$Default
in classXrGraphicsBindingVulkanKHR
-
next
Sets the specified value to thenext
field.- Overrides:
next
in classXrGraphicsBindingVulkanKHR
-
instance
Sets the specified value to theinstance
field.- Overrides:
instance
in classXrGraphicsBindingVulkanKHR
-
physicalDevice
Sets the specified value to thephysicalDevice
field.- Overrides:
physicalDevice
in classXrGraphicsBindingVulkanKHR
-
device
Sets the specified value to thedevice
field.- Overrides:
device
in classXrGraphicsBindingVulkanKHR
-
queueFamilyIndex
Sets the specified value to thequeueFamilyIndex
field.- Overrides:
queueFamilyIndex
in classXrGraphicsBindingVulkanKHR
-
queueIndex
Sets the specified value to thequeueIndex
field.- Overrides:
queueIndex
in classXrGraphicsBindingVulkanKHR
-
set
public XrGraphicsBindingVulkan2KHR set(int type, long next, VkInstance instance, VkPhysicalDevice physicalDevice, VkDevice device, int queueFamilyIndex, int queueIndex) Initializes this struct with the specified values.- Overrides:
set
in classXrGraphicsBindingVulkanKHR
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newXrGraphicsBindingVulkan2KHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrGraphicsBindingVulkan2KHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrGraphicsBindingVulkan2KHR
instance allocated withBufferUtils
. -
create
Returns a newXrGraphicsBindingVulkan2KHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrGraphicsBindingVulkan2KHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrGraphicsBindingVulkan2KHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrGraphicsBindingVulkan2KHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrGraphicsBindingVulkan2KHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newXrGraphicsBindingVulkan2KHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrGraphicsBindingVulkan2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrGraphicsBindingVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrGraphicsBindingVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-