Package org.lwjgl.openxr
Class XrVulkanGraphicsDeviceGetInfoKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrVulkanGraphicsDeviceGetInfoKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrVulkanGraphicsDeviceGetInfoKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceVulkan Graphics Device Get Info.Valid Usage (Implicit)
- The
XR_KHR_vulkan_enable2extension must be enabled prior to usingXrVulkanGraphicsDeviceGetInfoKHR typemust beTYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHRnextmust beNULLor a valid pointer to the next structure in a structure chainvulkanInstancemust be a validVkInstancevalue
See Also
Layout
struct XrVulkanGraphicsDeviceGetInfoKHR { XrStructureType type; void const * next; XrSystemIdsystemId(); VkInstancevulkanInstance(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrVulkanGraphicsDeviceGetInfoKHR.BufferAn array ofXrVulkanGraphicsDeviceGetInfoKHRstructs.
-
Constructor Summary
Constructors Constructor Description XrVulkanGraphicsDeviceGetInfoKHR(java.nio.ByteBuffer container)Creates aXrVulkanGraphicsDeviceGetInfoKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrVulkanGraphicsDeviceGetInfoKHRcalloc()Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance allocated withmemCalloc.static XrVulkanGraphicsDeviceGetInfoKHR.Buffercalloc(int capacity)Returns a newXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance allocated withmemCalloc.static XrVulkanGraphicsDeviceGetInfoKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrVulkanGraphicsDeviceGetInfoKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrVulkanGraphicsDeviceGetInfoKHRcreate()Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance allocated withBufferUtils.static XrVulkanGraphicsDeviceGetInfoKHR.Buffercreate(int capacity)Returns a newXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance allocated withBufferUtils.static XrVulkanGraphicsDeviceGetInfoKHRcreate(long address)Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance for the specified memory address.static XrVulkanGraphicsDeviceGetInfoKHR.Buffercreate(long address, int capacity)Create aXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance at the specified memory.static XrVulkanGraphicsDeviceGetInfoKHRcreateSafe(long address)static XrVulkanGraphicsDeviceGetInfoKHR.BuffercreateSafe(long address, int capacity)static XrVulkanGraphicsDeviceGetInfoKHRmalloc()Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance allocated withmemAlloc.static XrVulkanGraphicsDeviceGetInfoKHR.Buffermalloc(int capacity)Returns a newXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance allocated withmemAlloc.static XrVulkanGraphicsDeviceGetInfoKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrVulkanGraphicsDeviceGetInfoKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance allocated on the specifiedMemoryStack.longnext()XrVulkanGraphicsDeviceGetInfoKHRnext(long value)Sets the specified value to thenextfield.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static longnsystemId(long struct)Unsafe version ofsystemId().static voidnsystemId(long struct, long value)Unsafe version ofsystemId.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.static longnvulkanInstance(long struct)Unsafe version ofvulkanInstance().static voidnvulkanInstance(long struct, org.lwjgl.vulkan.VkInstance value)Unsafe version ofvulkanInstance.XrVulkanGraphicsDeviceGetInfoKHRset(int type, long next, long systemId, org.lwjgl.vulkan.VkInstance vulkanInstance)Initializes this struct with the specified values.XrVulkanGraphicsDeviceGetInfoKHRset(XrVulkanGraphicsDeviceGetInfoKHR src)Copies the specified struct data to this struct.intsizeof()longsystemId()anXrSystemIdhandle for the system which will be used to create a session.XrVulkanGraphicsDeviceGetInfoKHRsystemId(long value)Sets the specified value to thesystemId()field.inttype()XrVulkanGraphicsDeviceGetInfoKHRtype(int value)Sets the specified value to thetypefield.XrVulkanGraphicsDeviceGetInfoKHRtype$Default()Sets theTYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHRvalue to thetypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.longvulkanInstance()a valid VulkanVkInstance.XrVulkanGraphicsDeviceGetInfoKHRvulkanInstance(org.lwjgl.vulkan.VkInstance value)Sets the specified value to thevulkanInstance()field.
-
-
-
Constructor Detail
-
XrVulkanGraphicsDeviceGetInfoKHR
public XrVulkanGraphicsDeviceGetInfoKHR(java.nio.ByteBuffer container)
Creates aXrVulkanGraphicsDeviceGetInfoKHRinstance 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
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
- Returns:
- the value of the
typefield.
-
next
public long next()
- Returns:
- the value of the
nextfield.
-
systemId
public long systemId()
anXrSystemIdhandle for the system which will be used to create a session.
-
vulkanInstance
public long vulkanInstance()
a valid VulkanVkInstance.
-
type
public XrVulkanGraphicsDeviceGetInfoKHR type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrVulkanGraphicsDeviceGetInfoKHR type$Default()
Sets theTYPE_VULKAN_GRAPHICS_DEVICE_GET_INFO_KHRvalue to thetypefield.
-
next
public XrVulkanGraphicsDeviceGetInfoKHR next(long value)
Sets the specified value to thenextfield.
-
systemId
public XrVulkanGraphicsDeviceGetInfoKHR systemId(long value)
Sets the specified value to thesystemId()field.
-
vulkanInstance
public XrVulkanGraphicsDeviceGetInfoKHR vulkanInstance(org.lwjgl.vulkan.VkInstance value)
Sets the specified value to thevulkanInstance()field.
-
set
public XrVulkanGraphicsDeviceGetInfoKHR set(int type, long next, long systemId, org.lwjgl.vulkan.VkInstance vulkanInstance)
Initializes this struct with the specified values.
-
set
public XrVulkanGraphicsDeviceGetInfoKHR set(XrVulkanGraphicsDeviceGetInfoKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrVulkanGraphicsDeviceGetInfoKHR malloc()
Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrVulkanGraphicsDeviceGetInfoKHR calloc()
Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrVulkanGraphicsDeviceGetInfoKHR create()
Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance allocated withBufferUtils.
-
create
public static XrVulkanGraphicsDeviceGetInfoKHR create(long address)
Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrVulkanGraphicsDeviceGetInfoKHR createSafe(long address)
-
malloc
public static XrVulkanGraphicsDeviceGetInfoKHR.Buffer malloc(int capacity)
Returns a newXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrVulkanGraphicsDeviceGetInfoKHR.Buffer calloc(int capacity)
Returns a newXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrVulkanGraphicsDeviceGetInfoKHR.Buffer create(int capacity)
Returns a newXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrVulkanGraphicsDeviceGetInfoKHR.Buffer create(long address, int capacity)
Create aXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrVulkanGraphicsDeviceGetInfoKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static XrVulkanGraphicsDeviceGetInfoKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrVulkanGraphicsDeviceGetInfoKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrVulkanGraphicsDeviceGetInfoKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrVulkanGraphicsDeviceGetInfoKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrVulkanGraphicsDeviceGetInfoKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrVulkanGraphicsDeviceGetInfoKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nsystemId
public static long nsystemId(long struct)
Unsafe version ofsystemId().
-
nvulkanInstance
public static long nvulkanInstance(long struct)
Unsafe version ofvulkanInstance().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsystemId
public static void nsystemId(long struct, long value)Unsafe version ofsystemId.
-
nvulkanInstance
public static void nvulkanInstance(long struct, org.lwjgl.vulkan.VkInstance value)Unsafe version ofvulkanInstance.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-