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 classAn array ofXrGraphicsRequirementsVulkan2KHRstructs.Nested 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.XrGraphicsRequirementsVulkanKHR
ALIGNOF, MAXAPIVERSIONSUPPORTED, MINAPIVERSIONSUPPORTED, NEXT, SIZEOF, TYPEFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrGraphicsRequirementsVulkan2KHR(ByteBuffer container) Creates aXrGraphicsRequirementsVulkan2KHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newXrGraphicsRequirementsVulkan2KHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrGraphicsRequirementsVulkan2KHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrGraphicsRequirementsVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newXrGraphicsRequirementsVulkan2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newXrGraphicsRequirementsVulkan2KHRinstance allocated withBufferUtils.create(int capacity) Returns a newXrGraphicsRequirementsVulkan2KHR.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrGraphicsRequirementsVulkan2KHRinstance for the specified memory address.create(long address, int capacity) Create aXrGraphicsRequirementsVulkan2KHR.Bufferinstance at the specified memory.static @Nullable XrGraphicsRequirementsVulkan2KHRcreateSafe(long address) static @Nullable XrGraphicsRequirementsVulkan2KHR.BuffercreateSafe(long address, int capacity) malloc()Returns a newXrGraphicsRequirementsVulkan2KHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrGraphicsRequirementsVulkan2KHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrGraphicsRequirementsVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newXrGraphicsRequirementsVulkan2KHRinstance allocated on the specifiedMemoryStack.maxApiVersionSupported(long value) Sets the specified value to themaxApiVersionSupportedfield.minApiVersionSupported(long value) Sets the specified value to theminApiVersionSupportedfield.next(long value) Sets the specified value to thenextfield.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 thetypefield.Sets theTYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHRvalue to thetypefield.Methods inherited from class org.lwjgl.openxr.XrGraphicsRequirementsVulkanKHR
maxApiVersionSupported, minApiVersionSupported, next, nmaxApiVersionSupported, nmaxApiVersionSupported, nminApiVersionSupported, nminApiVersionSupported, nnext, nnext, ntype, ntype, set, sizeof, typeMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
XrGraphicsRequirementsVulkan2KHR
Creates aXrGraphicsRequirementsVulkan2KHRinstance 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 classXrGraphicsRequirementsVulkanKHR
-
type$Default
Sets theTYPE_GRAPHICS_REQUIREMENTS_VULKAN_KHRvalue to thetypefield.- Overrides:
type$Defaultin classXrGraphicsRequirementsVulkanKHR
-
next
Sets the specified value to thenextfield.- Overrides:
nextin classXrGraphicsRequirementsVulkanKHR
-
minApiVersionSupported
Sets the specified value to theminApiVersionSupportedfield.- Overrides:
minApiVersionSupportedin classXrGraphicsRequirementsVulkanKHR
-
maxApiVersionSupported
Sets the specified value to themaxApiVersionSupportedfield.- Overrides:
maxApiVersionSupportedin classXrGraphicsRequirementsVulkanKHR
-
set
public XrGraphicsRequirementsVulkan2KHR set(int type, long next, long minApiVersionSupported, long maxApiVersionSupported) Initializes this struct with the specified values.- Overrides:
setin classXrGraphicsRequirementsVulkanKHR
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrGraphicsRequirementsVulkan2KHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrGraphicsRequirementsVulkan2KHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrGraphicsRequirementsVulkan2KHRinstance allocated withBufferUtils. -
create
Returns a newXrGraphicsRequirementsVulkan2KHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrGraphicsRequirementsVulkan2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrGraphicsRequirementsVulkan2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrGraphicsRequirementsVulkan2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrGraphicsRequirementsVulkan2KHR.Bufferinstance 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 newXrGraphicsRequirementsVulkan2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrGraphicsRequirementsVulkan2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrGraphicsRequirementsVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrGraphicsRequirementsVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-