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.StructValidationNested 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, TYPEFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrGraphicsBindingVulkan2KHR(ByteBuffer container) Creates aXrGraphicsBindingVulkan2KHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrGraphicsBindingVulkan2KHRcalloc()Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGraphicsBindingVulkan2KHRcalloc(MemoryStack stack) Returns a newXrGraphicsBindingVulkan2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGraphicsBindingVulkan2KHRcreate()Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withBufferUtils.create(int capacity) Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withBufferUtils.static XrGraphicsBindingVulkan2KHRcreate(long address) Returns a newXrGraphicsBindingVulkan2KHRinstance for the specified memory address.create(long address, int capacity) Create aXrGraphicsBindingVulkan2KHR.Bufferinstance at the specified memory.static @Nullable XrGraphicsBindingVulkan2KHRcreateSafe(long address) static @Nullable XrGraphicsBindingVulkan2KHR.BuffercreateSafe(long address, int capacity) Sets the specified value to thedevicefield.instance(VkInstance value) Sets the specified value to theinstancefield.static XrGraphicsBindingVulkan2KHRmalloc()Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStack.static XrGraphicsBindingVulkan2KHRmalloc(MemoryStack stack) Returns a newXrGraphicsBindingVulkan2KHRinstance allocated on the specifiedMemoryStack.next(long value) Sets the specified value to thenextfield.physicalDevice(VkPhysicalDevice value) Sets the specified value to thephysicalDevicefield.queueFamilyIndex(int value) Sets the specified value to thequeueFamilyIndexfield.queueIndex(int value) Sets the specified value to thequeueIndexfield.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 thetypefield.Sets theTYPE_GRAPHICS_BINDING_VULKAN_KHRvalue to thetypefield.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, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
XrGraphicsBindingVulkan2KHR
Creates aXrGraphicsBindingVulkan2KHRinstance at the current position of the specifiedByteBuffercontainer. 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 thetypefield.- Overrides:
typein classXrGraphicsBindingVulkanKHR
-
type$Default
Sets theTYPE_GRAPHICS_BINDING_VULKAN_KHRvalue to thetypefield.- Overrides:
type$Defaultin classXrGraphicsBindingVulkanKHR
-
next
Sets the specified value to thenextfield.- Overrides:
nextin classXrGraphicsBindingVulkanKHR
-
instance
Sets the specified value to theinstancefield.- Overrides:
instancein classXrGraphicsBindingVulkanKHR
-
physicalDevice
Sets the specified value to thephysicalDevicefield.- Overrides:
physicalDevicein classXrGraphicsBindingVulkanKHR
-
device
Sets the specified value to thedevicefield.- Overrides:
devicein classXrGraphicsBindingVulkanKHR
-
queueFamilyIndex
Sets the specified value to thequeueFamilyIndexfield.- Overrides:
queueFamilyIndexin classXrGraphicsBindingVulkanKHR
-
queueIndex
Sets the specified value to thequeueIndexfield.- Overrides:
queueIndexin 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:
setin classXrGraphicsBindingVulkanKHR
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withBufferUtils. -
create
Returns a newXrGraphicsBindingVulkan2KHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrGraphicsBindingVulkan2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrGraphicsBindingVulkan2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrGraphicsBindingVulkan2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-