Package org.lwjgl.openxr
Class XrGraphicsRequirementsVulkan2KHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrGraphicsRequirementsVulkanKHR>
org.lwjgl.openxr.XrGraphicsRequirementsVulkanKHR
org.lwjgl.openxr.XrGraphicsRequirementsVulkan2KHR
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct XrGraphicsRequirementsVulkan2KHR {
XrStructureType type;
void * next;
XrVersion minApiVersionSupported;
XrVersion maxApiVersionSupported;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
An array ofXrGraphicsRequirementsVulkan2KHR
structs.Nested 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.XrGraphicsRequirementsVulkanKHR
ALIGNOF, MAXAPIVERSIONSUPPORTED, MINAPIVERSIONSUPPORTED, NEXT, SIZEOF, TYPE
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrGraphicsRequirementsVulkan2KHR
(ByteBuffer container) Creates aXrGraphicsRequirementsVulkan2KHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()
Returns a newXrGraphicsRequirementsVulkan2KHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newXrGraphicsRequirementsVulkan2KHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newXrGraphicsRequirementsVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.calloc
(MemoryStack stack) Returns a newXrGraphicsRequirementsVulkan2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.create()
Returns a newXrGraphicsRequirementsVulkan2KHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newXrGraphicsRequirementsVulkan2KHR.Buffer
instance allocated withBufferUtils
.create
(long address) Returns a newXrGraphicsRequirementsVulkan2KHR
instance for the specified memory address.create
(long address, int capacity) Create aXrGraphicsRequirementsVulkan2KHR.Buffer
instance at the specified memory.static @Nullable XrGraphicsRequirementsVulkan2KHR
createSafe
(long address) static @Nullable XrGraphicsRequirementsVulkan2KHR.Buffer
createSafe
(long address, int capacity) malloc()
Returns a newXrGraphicsRequirementsVulkan2KHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newXrGraphicsRequirementsVulkan2KHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newXrGraphicsRequirementsVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
.malloc
(MemoryStack stack) Returns a newXrGraphicsRequirementsVulkan2KHR
instance allocated on the specifiedMemoryStack
.maxApiVersionSupported
(long value) Sets the specified value to themaxApiVersionSupported
field.minApiVersionSupported
(long value) Sets the specified value to theminApiVersionSupported
field.next
(long value) Sets the specified value to thenext
field.set
(int type, long next, long minApiVersionSupported, long maxApiVersionSupported) 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_REQUIREMENTS_VULKAN_KHR
value to thetype
field.Methods inherited from class org.lwjgl.openxr.XrGraphicsRequirementsVulkanKHR
maxApiVersionSupported, minApiVersionSupported, next, nmaxApiVersionSupported, nmaxApiVersionSupported, nminApiVersionSupported, nminApiVersionSupported, nnext, nnext, ntype, ntype, set, sizeof, type
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
-
XrGraphicsRequirementsVulkan2KHR
Creates aXrGraphicsRequirementsVulkan2KHR
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 classXrGraphicsRequirementsVulkanKHR
-
type$Default
Sets theTYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHR
value to thetype
field.- Overrides:
type$Default
in classXrGraphicsRequirementsVulkanKHR
-
next
Sets the specified value to thenext
field.- Overrides:
next
in classXrGraphicsRequirementsVulkanKHR
-
minApiVersionSupported
Sets the specified value to theminApiVersionSupported
field.- Overrides:
minApiVersionSupported
in classXrGraphicsRequirementsVulkanKHR
-
maxApiVersionSupported
Sets the specified value to themaxApiVersionSupported
field.- Overrides:
maxApiVersionSupported
in classXrGraphicsRequirementsVulkanKHR
-
set
public XrGraphicsRequirementsVulkan2KHR set(int type, long next, long minApiVersionSupported, long maxApiVersionSupported) Initializes this struct with the specified values.- Overrides:
set
in classXrGraphicsRequirementsVulkanKHR
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newXrGraphicsRequirementsVulkan2KHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrGraphicsRequirementsVulkan2KHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrGraphicsRequirementsVulkan2KHR
instance allocated withBufferUtils
. -
create
Returns a newXrGraphicsRequirementsVulkan2KHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newXrGraphicsRequirementsVulkan2KHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrGraphicsRequirementsVulkan2KHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrGraphicsRequirementsVulkan2KHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrGraphicsRequirementsVulkan2KHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
public static @Nullable XrGraphicsRequirementsVulkan2KHR.Buffer createSafe(long address, int capacity) -
malloc
Returns a newXrGraphicsRequirementsVulkan2KHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrGraphicsRequirementsVulkan2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrGraphicsRequirementsVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrGraphicsRequirementsVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-