Package org.lwjgl.openxr
Class XrSwapchainImageVulkan2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSwapchainImageVulkanKHR
-
- org.lwjgl.openxr.XrSwapchainImageVulkan2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSwapchainImageVulkan2KHR extends XrSwapchainImageVulkanKHR
SeeXrSwapchainImageVulkanKHR.Layout
struct XrSwapchainImageVulkan2KHR { XrStructureType type; void * next; VkImage image; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSwapchainImageVulkan2KHR.BufferAn array ofXrSwapchainImageVulkan2KHRstructs.
-
Constructor Summary
Constructors Constructor Description XrSwapchainImageVulkan2KHR(java.nio.ByteBuffer container)Creates aXrSwapchainImageVulkan2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSwapchainImageVulkan2KHRcalloc()Returns a newXrSwapchainImageVulkan2KHRinstance allocated withmemCalloc.static XrSwapchainImageVulkan2KHR.Buffercalloc(int capacity)Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withmemCalloc.static XrSwapchainImageVulkan2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainImageVulkan2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageVulkan2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainImageVulkan2KHRcreate()Returns a newXrSwapchainImageVulkan2KHRinstance allocated withBufferUtils.static XrSwapchainImageVulkan2KHR.Buffercreate(int capacity)Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withBufferUtils.static XrSwapchainImageVulkan2KHRcreate(long address)Returns a newXrSwapchainImageVulkan2KHRinstance for the specified memory address.static XrSwapchainImageVulkan2KHR.Buffercreate(long address, int capacity)Create aXrSwapchainImageVulkan2KHR.Bufferinstance at the specified memory.static XrSwapchainImageVulkan2KHRcreateSafe(long address)static XrSwapchainImageVulkan2KHR.BuffercreateSafe(long address, int capacity)XrSwapchainImageVulkan2KHRimage(long value)Sets the specified value to theimagefield.static XrSwapchainImageVulkan2KHRmalloc()Returns a newXrSwapchainImageVulkan2KHRinstance allocated withmemAlloc.static XrSwapchainImageVulkan2KHR.Buffermalloc(int capacity)Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withmemAlloc.static XrSwapchainImageVulkan2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainImageVulkan2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageVulkan2KHRinstance allocated on the specifiedMemoryStack.XrSwapchainImageVulkan2KHRnext(long value)Sets the specified value to thenextfield.XrSwapchainImageVulkan2KHRset(int type, long next, long image)Initializes this struct with the specified values.XrSwapchainImageVulkan2KHRset(XrSwapchainImageVulkan2KHR src)Copies the specified struct data to this struct.XrSwapchainImageVulkan2KHRtype(int value)Sets the specified value to thetypefield.XrSwapchainImageVulkan2KHRtype$Default()Sets theTYPE_SWAPCHAIN_IMAGE_VULKAN_KHRvalue to thetypefield.
-
-
-
Constructor Detail
-
XrSwapchainImageVulkan2KHR
public XrSwapchainImageVulkan2KHR(java.nio.ByteBuffer container)
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 Detail
-
type
public XrSwapchainImageVulkan2KHR type(int value)
Sets the specified value to thetypefield.- Overrides:
typein classXrSwapchainImageVulkanKHR
-
type$Default
public XrSwapchainImageVulkan2KHR type$Default()
Sets theTYPE_SWAPCHAIN_IMAGE_VULKAN_KHRvalue to thetypefield.- Overrides:
type$Defaultin classXrSwapchainImageVulkanKHR
-
next
public XrSwapchainImageVulkan2KHR next(long value)
Sets the specified value to thenextfield.- Overrides:
nextin classXrSwapchainImageVulkanKHR
-
image
public XrSwapchainImageVulkan2KHR image(long value)
Sets the specified value to theimagefield.- Overrides:
imagein classXrSwapchainImageVulkanKHR
-
set
public XrSwapchainImageVulkan2KHR set(int type, long next, long image)
Initializes this struct with the specified values.- Overrides:
setin classXrSwapchainImageVulkanKHR
-
set
public XrSwapchainImageVulkan2KHR set(XrSwapchainImageVulkan2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSwapchainImageVulkan2KHR malloc()
Returns a newXrSwapchainImageVulkan2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSwapchainImageVulkan2KHR calloc()
Returns a newXrSwapchainImageVulkan2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSwapchainImageVulkan2KHR create()
Returns a newXrSwapchainImageVulkan2KHRinstance allocated withBufferUtils.
-
create
public static XrSwapchainImageVulkan2KHR create(long address)
Returns a newXrSwapchainImageVulkan2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrSwapchainImageVulkan2KHR createSafe(long address)
-
malloc
public static XrSwapchainImageVulkan2KHR.Buffer malloc(int capacity)
Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSwapchainImageVulkan2KHR.Buffer calloc(int capacity)
Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainImageVulkan2KHR.Buffer create(int capacity)
Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainImageVulkan2KHR.Buffer create(long address, int capacity)
Create aXrSwapchainImageVulkan2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSwapchainImageVulkan2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSwapchainImageVulkan2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageVulkan2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSwapchainImageVulkan2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageVulkan2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSwapchainImageVulkan2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSwapchainImageVulkan2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageVulkan2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-