Package org.lwjgl.openxr
Class XrGraphicsBindingVulkan2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrGraphicsBindingVulkanKHR
-
- org.lwjgl.openxr.XrGraphicsBindingVulkan2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrGraphicsBindingVulkan2KHR extends XrGraphicsBindingVulkanKHR
SeeXrGraphicsBindingVulkanKHR.Layout
struct XrGraphicsBindingVulkan2KHR { XrStructureType type; void const * next; VkInstance instance; VkPhysicalDevice physicalDevice; VkDevice device; uint32_t queueFamilyIndex; uint32_t queueIndex; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrGraphicsBindingVulkan2KHR.BufferAn array ofXrGraphicsBindingVulkan2KHRstructs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.openxr.XrGraphicsBindingVulkanKHR
ALIGNOF, DEVICE, INSTANCE, NEXT, PHYSICALDEVICE, QUEUEFAMILYINDEX, QUEUEINDEX, SIZEOF, TYPE
-
-
Constructor Summary
Constructors Constructor Description XrGraphicsBindingVulkan2KHR(java.nio.ByteBuffer container)Creates aXrGraphicsBindingVulkan2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrGraphicsBindingVulkan2KHRcalloc()Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withmemCalloc.static XrGraphicsBindingVulkan2KHR.Buffercalloc(int capacity)Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withmemCalloc.static XrGraphicsBindingVulkan2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGraphicsBindingVulkan2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsBindingVulkan2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGraphicsBindingVulkan2KHRcreate()Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withBufferUtils.static XrGraphicsBindingVulkan2KHR.Buffercreate(int capacity)Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withBufferUtils.static XrGraphicsBindingVulkan2KHRcreate(long address)Returns a newXrGraphicsBindingVulkan2KHRinstance for the specified memory address.static XrGraphicsBindingVulkan2KHR.Buffercreate(long address, int capacity)Create aXrGraphicsBindingVulkan2KHR.Bufferinstance at the specified memory.static XrGraphicsBindingVulkan2KHRcreateSafe(long address)static XrGraphicsBindingVulkan2KHR.BuffercreateSafe(long address, int capacity)XrGraphicsBindingVulkan2KHRdevice(org.lwjgl.vulkan.VkDevice value)Sets the specified value to thedevicefield.XrGraphicsBindingVulkan2KHRinstance(org.lwjgl.vulkan.VkInstance value)Sets the specified value to theinstancefield.static XrGraphicsBindingVulkan2KHRmalloc()Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withmemAlloc.static XrGraphicsBindingVulkan2KHR.Buffermalloc(int capacity)Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withmemAlloc.static XrGraphicsBindingVulkan2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStack.static XrGraphicsBindingVulkan2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsBindingVulkan2KHRinstance allocated on the specifiedMemoryStack.XrGraphicsBindingVulkan2KHRnext(long value)Sets the specified value to thenextfield.XrGraphicsBindingVulkan2KHRphysicalDevice(org.lwjgl.vulkan.VkPhysicalDevice value)Sets the specified value to thephysicalDevicefield.XrGraphicsBindingVulkan2KHRqueueFamilyIndex(int value)Sets the specified value to thequeueFamilyIndexfield.XrGraphicsBindingVulkan2KHRqueueIndex(int value)Sets the specified value to thequeueIndexfield.XrGraphicsBindingVulkan2KHRset(int type, long next, org.lwjgl.vulkan.VkInstance instance, org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, org.lwjgl.vulkan.VkDevice device, int queueFamilyIndex, int queueIndex)Initializes this struct with the specified values.XrGraphicsBindingVulkan2KHRset(XrGraphicsBindingVulkan2KHR src)Copies the specified struct data to this struct.XrGraphicsBindingVulkan2KHRtype(int value)Sets the specified value to thetypefield.XrGraphicsBindingVulkan2KHRtype$Default()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, validate
-
-
-
-
Constructor Detail
-
XrGraphicsBindingVulkan2KHR
public XrGraphicsBindingVulkan2KHR(java.nio.ByteBuffer container)
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 Detail
-
type
public XrGraphicsBindingVulkan2KHR type(int value)
Sets the specified value to thetypefield.- Overrides:
typein classXrGraphicsBindingVulkanKHR
-
type$Default
public XrGraphicsBindingVulkan2KHR type$Default()
Sets theTYPE_GRAPHICS_BINDING_VULKAN_KHRvalue to thetypefield.- Overrides:
type$Defaultin classXrGraphicsBindingVulkanKHR
-
next
public XrGraphicsBindingVulkan2KHR next(long value)
Sets the specified value to thenextfield.- Overrides:
nextin classXrGraphicsBindingVulkanKHR
-
instance
public XrGraphicsBindingVulkan2KHR instance(org.lwjgl.vulkan.VkInstance value)
Sets the specified value to theinstancefield.- Overrides:
instancein classXrGraphicsBindingVulkanKHR
-
physicalDevice
public XrGraphicsBindingVulkan2KHR physicalDevice(org.lwjgl.vulkan.VkPhysicalDevice value)
Sets the specified value to thephysicalDevicefield.- Overrides:
physicalDevicein classXrGraphicsBindingVulkanKHR
-
device
public XrGraphicsBindingVulkan2KHR device(org.lwjgl.vulkan.VkDevice value)
Sets the specified value to thedevicefield.- Overrides:
devicein classXrGraphicsBindingVulkanKHR
-
queueFamilyIndex
public XrGraphicsBindingVulkan2KHR queueFamilyIndex(int value)
Sets the specified value to thequeueFamilyIndexfield.- Overrides:
queueFamilyIndexin classXrGraphicsBindingVulkanKHR
-
queueIndex
public XrGraphicsBindingVulkan2KHR queueIndex(int value)
Sets the specified value to thequeueIndexfield.- Overrides:
queueIndexin classXrGraphicsBindingVulkanKHR
-
set
public XrGraphicsBindingVulkan2KHR set(int type, long next, org.lwjgl.vulkan.VkInstance instance, org.lwjgl.vulkan.VkPhysicalDevice physicalDevice, org.lwjgl.vulkan.VkDevice device, int queueFamilyIndex, int queueIndex)
Initializes this struct with the specified values.- Overrides:
setin classXrGraphicsBindingVulkanKHR
-
set
public XrGraphicsBindingVulkan2KHR set(XrGraphicsBindingVulkan2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrGraphicsBindingVulkan2KHR malloc()
Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrGraphicsBindingVulkan2KHR calloc()
Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrGraphicsBindingVulkan2KHR create()
Returns a newXrGraphicsBindingVulkan2KHRinstance allocated withBufferUtils.
-
create
public static XrGraphicsBindingVulkan2KHR create(long address)
Returns a newXrGraphicsBindingVulkan2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrGraphicsBindingVulkan2KHR createSafe(long address)
-
malloc
public static XrGraphicsBindingVulkan2KHR.Buffer malloc(int capacity)
Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrGraphicsBindingVulkan2KHR.Buffer calloc(int capacity)
Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrGraphicsBindingVulkan2KHR.Buffer create(int capacity)
Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrGraphicsBindingVulkan2KHR.Buffer create(long address, int capacity)
Create aXrGraphicsBindingVulkan2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrGraphicsBindingVulkan2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static XrGraphicsBindingVulkan2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsBindingVulkan2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrGraphicsBindingVulkan2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsBindingVulkan2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrGraphicsBindingVulkan2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrGraphicsBindingVulkan2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsBindingVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-