Package org.lwjgl.openxr
Class XrGraphicsRequirementsVulkanKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrGraphicsRequirementsVulkanKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
XrGraphicsRequirementsVulkan2KHR
public class XrGraphicsRequirementsVulkanKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceVulkan API version requirements.Description
XrGraphicsRequirementsVulkanKHRis populated byGetVulkanGraphicsRequirementsKHRwith the runtime’s Vulkan API version requirements.Valid Usage (Implicit)
- The
XR_KHR_vulkan_enableextension must be enabled prior to usingXrGraphicsRequirementsVulkanKHR typemust beTYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHRnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
GetVulkanGraphicsRequirements2KHR,GetVulkanGraphicsRequirementsKHRLayout
struct XrGraphicsRequirementsVulkanKHR { XrStructureTypetype(); void *next(); XrVersionminApiVersionSupported(); XrVersionmaxApiVersionSupported(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrGraphicsRequirementsVulkanKHR.BufferAn array ofXrGraphicsRequirementsVulkanKHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXAPIVERSIONSUPPORTED
MINAPIVERSIONSUPPORTED
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrGraphicsRequirementsVulkanKHR(java.nio.ByteBuffer container)Creates aXrGraphicsRequirementsVulkanKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrGraphicsRequirementsVulkanKHRcalloc()Returns a newXrGraphicsRequirementsVulkanKHRinstance allocated withmemCalloc.static XrGraphicsRequirementsVulkanKHR.Buffercalloc(int capacity)Returns a newXrGraphicsRequirementsVulkanKHR.Bufferinstance allocated withmemCalloc.static XrGraphicsRequirementsVulkanKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsRequirementsVulkanKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGraphicsRequirementsVulkanKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsRequirementsVulkanKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrGraphicsRequirementsVulkanKHRcreate()Returns a newXrGraphicsRequirementsVulkanKHRinstance allocated withBufferUtils.static XrGraphicsRequirementsVulkanKHR.Buffercreate(int capacity)Returns a newXrGraphicsRequirementsVulkanKHR.Bufferinstance allocated withBufferUtils.static XrGraphicsRequirementsVulkanKHRcreate(long address)Returns a newXrGraphicsRequirementsVulkanKHRinstance for the specified memory address.static XrGraphicsRequirementsVulkanKHR.Buffercreate(long address, int capacity)Create aXrGraphicsRequirementsVulkanKHR.Bufferinstance at the specified memory.static XrGraphicsRequirementsVulkanKHRcreateSafe(long address)static XrGraphicsRequirementsVulkanKHR.BuffercreateSafe(long address, int capacity)static XrGraphicsRequirementsVulkanKHRmalloc()Returns a newXrGraphicsRequirementsVulkanKHRinstance allocated withmemAlloc.static XrGraphicsRequirementsVulkanKHR.Buffermalloc(int capacity)Returns a newXrGraphicsRequirementsVulkanKHR.Bufferinstance allocated withmemAlloc.static XrGraphicsRequirementsVulkanKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsRequirementsVulkanKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrGraphicsRequirementsVulkanKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrGraphicsRequirementsVulkanKHRinstance allocated on the specifiedMemoryStack.longmaxApiVersionSupported()the maximum Vulkan Instance API version that the runtime has been tested on and is known to support.XrGraphicsRequirementsVulkanKHRmaxApiVersionSupported(long value)Sets the specified value to themaxApiVersionSupported()field.longminApiVersionSupported()the minimum Vulkan Instance API version that the runtime supports.XrGraphicsRequirementsVulkanKHRminApiVersionSupported(long value)Sets the specified value to theminApiVersionSupported()field.longnext()NULLor a pointer to the next structure in a structure chain.XrGraphicsRequirementsVulkanKHRnext(long value)Sets the specified value to thenext()field.static longnmaxApiVersionSupported(long struct)Unsafe version ofmaxApiVersionSupported().static voidnmaxApiVersionSupported(long struct, long value)Unsafe version ofmaxApiVersionSupported.static longnminApiVersionSupported(long struct)Unsafe version ofminApiVersionSupported().static voidnminApiVersionSupported(long struct, long value)Unsafe version ofminApiVersionSupported.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrGraphicsRequirementsVulkanKHRset(int type, long next, long minApiVersionSupported, long maxApiVersionSupported)Initializes this struct with the specified values.XrGraphicsRequirementsVulkanKHRset(XrGraphicsRequirementsVulkanKHR src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrGraphicsRequirementsVulkanKHRtype(int value)Sets the specified value to thetype()field.XrGraphicsRequirementsVulkanKHRtype$Default()Sets theTYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHRvalue to thetype()field.
-
-
-
Constructor Detail
-
XrGraphicsRequirementsVulkanKHR
public XrGraphicsRequirementsVulkanKHR(java.nio.ByteBuffer container)
Creates aXrGraphicsRequirementsVulkanKHRinstance 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()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.
-
minApiVersionSupported
public long minApiVersionSupported()
the minimum Vulkan Instance API version that the runtime supports. UsesXR10.XR_MAKE_VERSION(int, int, int)on major and minor API version, ignoring any patch version component.
-
maxApiVersionSupported
public long maxApiVersionSupported()
the maximum Vulkan Instance API version that the runtime has been tested on and is known to support. Newer Vulkan Instance API versions might work if they are compatible. UsesXR10.XR_MAKE_VERSION(int, int, int)on major and minor API version, ignoring any patch version component.
-
type
public XrGraphicsRequirementsVulkanKHR type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrGraphicsRequirementsVulkanKHR type$Default()
Sets theTYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHRvalue to thetype()field.
-
next
public XrGraphicsRequirementsVulkanKHR next(long value)
Sets the specified value to thenext()field.
-
minApiVersionSupported
public XrGraphicsRequirementsVulkanKHR minApiVersionSupported(long value)
Sets the specified value to theminApiVersionSupported()field.
-
maxApiVersionSupported
public XrGraphicsRequirementsVulkanKHR maxApiVersionSupported(long value)
Sets the specified value to themaxApiVersionSupported()field.
-
set
public XrGraphicsRequirementsVulkanKHR set(int type, long next, long minApiVersionSupported, long maxApiVersionSupported)
Initializes this struct with the specified values.
-
set
public XrGraphicsRequirementsVulkanKHR set(XrGraphicsRequirementsVulkanKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrGraphicsRequirementsVulkanKHR malloc()
Returns a newXrGraphicsRequirementsVulkanKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrGraphicsRequirementsVulkanKHR calloc()
Returns a newXrGraphicsRequirementsVulkanKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrGraphicsRequirementsVulkanKHR create()
Returns a newXrGraphicsRequirementsVulkanKHRinstance allocated withBufferUtils.
-
create
public static XrGraphicsRequirementsVulkanKHR create(long address)
Returns a newXrGraphicsRequirementsVulkanKHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrGraphicsRequirementsVulkanKHR createSafe(long address)
-
malloc
public static XrGraphicsRequirementsVulkanKHR.Buffer malloc(int capacity)
Returns a newXrGraphicsRequirementsVulkanKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrGraphicsRequirementsVulkanKHR.Buffer calloc(int capacity)
Returns a newXrGraphicsRequirementsVulkanKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrGraphicsRequirementsVulkanKHR.Buffer create(int capacity)
Returns a newXrGraphicsRequirementsVulkanKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrGraphicsRequirementsVulkanKHR.Buffer create(long address, int capacity)
Create aXrGraphicsRequirementsVulkanKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrGraphicsRequirementsVulkanKHR.Buffer createSafe(long address, int capacity)
-
malloc
public static XrGraphicsRequirementsVulkanKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsRequirementsVulkanKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrGraphicsRequirementsVulkanKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsRequirementsVulkanKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrGraphicsRequirementsVulkanKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsRequirementsVulkanKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrGraphicsRequirementsVulkanKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrGraphicsRequirementsVulkanKHR.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().
-
nminApiVersionSupported
public static long nminApiVersionSupported(long struct)
Unsafe version ofminApiVersionSupported().
-
nmaxApiVersionSupported
public static long nmaxApiVersionSupported(long struct)
Unsafe version ofmaxApiVersionSupported().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nminApiVersionSupported
public static void nminApiVersionSupported(long struct, long value)Unsafe version ofminApiVersionSupported.
-
nmaxApiVersionSupported
public static void nmaxApiVersionSupported(long struct, long value)Unsafe version ofmaxApiVersionSupported.
-
-