Package org.lwjgl.openxr
Class XrSwapchainImageVulkan2KHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSwapchainImageVulkanKHR>
org.lwjgl.openxr.XrSwapchainImageVulkanKHR
org.lwjgl.openxr.XrSwapchainImageVulkan2KHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrSwapchainImageVulkan2KHR {
XrStructureType type;
void * next;
VkImage image;
}-
Nested Class Summary
Nested ClassesNested 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.XrSwapchainImageVulkanKHR
ALIGNOF, IMAGE, NEXT, SIZEOF, TYPEFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSwapchainImageVulkan2KHR(ByteBuffer container) Creates aXrSwapchainImageVulkan2KHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSwapchainImageVulkan2KHRcalloc()Returns a newXrSwapchainImageVulkan2KHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainImageVulkan2KHRcalloc(MemoryStack stack) Returns a newXrSwapchainImageVulkan2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainImageVulkan2KHRcreate()Returns a newXrSwapchainImageVulkan2KHRinstance allocated withBufferUtils.create(int capacity) Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withBufferUtils.static XrSwapchainImageVulkan2KHRcreate(long address) Returns a newXrSwapchainImageVulkan2KHRinstance for the specified memory address.create(long address, int capacity) Create aXrSwapchainImageVulkan2KHR.Bufferinstance at the specified memory.static XrSwapchainImageVulkan2KHRcreate(XrSwapchainImageBaseHeader value) Downcasts the specifiedXrSwapchainImageBaseHeaderinstance toXrSwapchainImageVulkan2KHR.Downcasts the specifiedXrSwapchainImageBaseHeader.Bufferinstance toXrSwapchainImageVulkan2KHR.Buffer.static @Nullable XrSwapchainImageVulkan2KHRcreateSafe(long address) static @Nullable XrSwapchainImageVulkan2KHR.BuffercreateSafe(long address, int capacity) static XrSwapchainImageVulkan2KHRmalloc()Returns a newXrSwapchainImageVulkan2KHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainImageVulkan2KHRmalloc(MemoryStack stack) Returns a newXrSwapchainImageVulkan2KHRinstance allocated on the specifiedMemoryStack.next(long value) Sets the specified value to thenextfield.set(int type, long next) 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_SWAPCHAIN_IMAGE_VULKAN_KHRvalue to thetypefield.Methods inherited from class org.lwjgl.openxr.XrSwapchainImageVulkanKHR
image, next, next, nimage, 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
-
XrSwapchainImageVulkan2KHR
Creates aXrSwapchainImageVulkan2KHRinstance 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 classXrSwapchainImageVulkanKHR
-
type$Default
Sets theTYPE_SWAPCHAIN_IMAGE_VULKAN_KHRvalue to thetypefield.- Overrides:
type$Defaultin classXrSwapchainImageVulkanKHR
-
next
Sets the specified value to thenextfield.- Overrides:
nextin classXrSwapchainImageVulkanKHR
-
set
Initializes this struct with the specified values.- Overrides:
setin classXrSwapchainImageVulkanKHR
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrSwapchainImageVulkan2KHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSwapchainImageVulkan2KHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSwapchainImageVulkan2KHRinstance allocated withBufferUtils. -
create
Returns a newXrSwapchainImageVulkan2KHRinstance for the specified memory address. -
createSafe
-
create
Downcasts the specifiedXrSwapchainImageBaseHeaderinstance toXrSwapchainImageVulkan2KHR. -
malloc
Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSwapchainImageVulkan2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
create
Downcasts the specifiedXrSwapchainImageBaseHeader.Bufferinstance toXrSwapchainImageVulkan2KHR.Buffer. -
malloc
Returns a newXrSwapchainImageVulkan2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSwapchainImageVulkan2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-