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.StructValidation
Nested 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, TYPE
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrSwapchainImageVulkan2KHR
(ByteBuffer container) Creates aXrSwapchainImageVulkan2KHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSwapchainImageVulkan2KHR
calloc()
Returns a newXrSwapchainImageVulkan2KHR
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newXrSwapchainImageVulkan2KHR.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newXrSwapchainImageVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrSwapchainImageVulkan2KHR
calloc
(MemoryStack stack) Returns a newXrSwapchainImageVulkan2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrSwapchainImageVulkan2KHR
create()
Returns a newXrSwapchainImageVulkan2KHR
instance allocated withBufferUtils
.create
(int capacity) Returns a newXrSwapchainImageVulkan2KHR.Buffer
instance allocated withBufferUtils
.static XrSwapchainImageVulkan2KHR
create
(long address) Returns a newXrSwapchainImageVulkan2KHR
instance for the specified memory address.create
(long address, int capacity) Create aXrSwapchainImageVulkan2KHR.Buffer
instance at the specified memory.static XrSwapchainImageVulkan2KHR
create
(XrSwapchainImageBaseHeader value) Downcasts the specifiedXrSwapchainImageBaseHeader
instance toXrSwapchainImageVulkan2KHR
.Downcasts the specifiedXrSwapchainImageBaseHeader.Buffer
instance toXrSwapchainImageVulkan2KHR.Buffer
.static @Nullable XrSwapchainImageVulkan2KHR
createSafe
(long address) static @Nullable XrSwapchainImageVulkan2KHR.Buffer
createSafe
(long address, int capacity) static XrSwapchainImageVulkan2KHR
malloc()
Returns a newXrSwapchainImageVulkan2KHR
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newXrSwapchainImageVulkan2KHR.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newXrSwapchainImageVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
.static XrSwapchainImageVulkan2KHR
malloc
(MemoryStack stack) Returns a newXrSwapchainImageVulkan2KHR
instance allocated on the specifiedMemoryStack
.next
(long value) Sets the specified value to thenext
field.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 thetype
field.Sets theTYPE_SWAPCHAIN_IMAGE_VULKAN_KHR
value to thetype
field.Methods inherited from class org.lwjgl.openxr.XrSwapchainImageVulkanKHR
image, next, next, nimage, 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
-
XrSwapchainImageVulkan2KHR
Creates aXrSwapchainImageVulkan2KHR
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 classXrSwapchainImageVulkanKHR
-
type$Default
Sets theTYPE_SWAPCHAIN_IMAGE_VULKAN_KHR
value to thetype
field.- Overrides:
type$Default
in classXrSwapchainImageVulkanKHR
-
next
Sets the specified value to thenext
field.- Overrides:
next
in classXrSwapchainImageVulkanKHR
-
set
Initializes this struct with the specified values.- Overrides:
set
in classXrSwapchainImageVulkanKHR
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newXrSwapchainImageVulkan2KHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrSwapchainImageVulkan2KHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrSwapchainImageVulkan2KHR
instance allocated withBufferUtils
. -
create
Returns a newXrSwapchainImageVulkan2KHR
instance for the specified memory address. -
createSafe
-
create
Downcasts the specifiedXrSwapchainImageBaseHeader
instance toXrSwapchainImageVulkan2KHR
. -
malloc
Returns a newXrSwapchainImageVulkan2KHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrSwapchainImageVulkan2KHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrSwapchainImageVulkan2KHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrSwapchainImageVulkan2KHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
create
Downcasts the specifiedXrSwapchainImageBaseHeader.Buffer
instance toXrSwapchainImageVulkan2KHR.Buffer
. -
malloc
Returns a newXrSwapchainImageVulkan2KHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrSwapchainImageVulkan2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrSwapchainImageVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrSwapchainImageVulkan2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-