Package org.lwjgl.openxr
Class XrSwapchainImageBaseHeader
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSwapchainImageBaseHeader
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSwapchainImageBaseHeader extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceImage base header for a swapchain image.Description
The
XrSwapchainImageBaseHeaderis a base structure that can be overridden by a graphics API-specific stext:XrSwapchainImage* child structure.Valid Usage (Implicit)
typemust be one of the following XrStructureType values:TYPE_SWAPCHAIN_IMAGE_OPENGL_ES_KHR,TYPE_SWAPCHAIN_IMAGE_OPENGL_KHR,TYPE_SWAPCHAIN_IMAGE_VULKAN_KHRnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrSwapchainImageBaseHeader { XrStructureTypetype(); void *next(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSwapchainImageBaseHeader.BufferAn array ofXrSwapchainImageBaseHeaderstructs.
-
Constructor Summary
Constructors Constructor Description XrSwapchainImageBaseHeader(java.nio.ByteBuffer container)Creates aXrSwapchainImageBaseHeaderinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSwapchainImageBaseHeadercalloc()Returns a newXrSwapchainImageBaseHeaderinstance allocated withmemCalloc.static XrSwapchainImageBaseHeader.Buffercalloc(int capacity)Returns a newXrSwapchainImageBaseHeader.Bufferinstance allocated withmemCalloc.static XrSwapchainImageBaseHeader.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageBaseHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainImageBaseHeadercalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageBaseHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainImageBaseHeadercreate()Returns a newXrSwapchainImageBaseHeaderinstance allocated withBufferUtils.static XrSwapchainImageBaseHeader.Buffercreate(int capacity)Returns a newXrSwapchainImageBaseHeader.Bufferinstance allocated withBufferUtils.static XrSwapchainImageBaseHeadercreate(long address)Returns a newXrSwapchainImageBaseHeaderinstance for the specified memory address.static XrSwapchainImageBaseHeader.Buffercreate(long address, int capacity)Create aXrSwapchainImageBaseHeader.Bufferinstance at the specified memory.static XrSwapchainImageBaseHeadercreate(XrSwapchainImageOpenGLESKHR value)Upcasts the specifiedXrSwapchainImageOpenGLESKHRinstance toXrSwapchainImageBaseHeader.static XrSwapchainImageBaseHeader.Buffercreate(XrSwapchainImageOpenGLESKHR.Buffer value)Upcasts the specifiedXrSwapchainImageOpenGLESKHR.Bufferinstance toXrSwapchainImageBaseHeader.Buffer.static XrSwapchainImageBaseHeadercreate(XrSwapchainImageOpenGLKHR value)Upcasts the specifiedXrSwapchainImageOpenGLKHRinstance toXrSwapchainImageBaseHeader.static XrSwapchainImageBaseHeader.Buffercreate(XrSwapchainImageOpenGLKHR.Buffer value)Upcasts the specifiedXrSwapchainImageOpenGLKHR.Bufferinstance toXrSwapchainImageBaseHeader.Buffer.static XrSwapchainImageBaseHeadercreate(XrSwapchainImageVulkanKHR value)Upcasts the specifiedXrSwapchainImageVulkanKHRinstance toXrSwapchainImageBaseHeader.static XrSwapchainImageBaseHeader.Buffercreate(XrSwapchainImageVulkanKHR.Buffer value)Upcasts the specifiedXrSwapchainImageVulkanKHR.Bufferinstance toXrSwapchainImageBaseHeader.Buffer.static XrSwapchainImageBaseHeadercreateSafe(long address)static XrSwapchainImageBaseHeader.BuffercreateSafe(long address, int capacity)static XrSwapchainImageBaseHeadermalloc()Returns a newXrSwapchainImageBaseHeaderinstance allocated withmemAlloc.static XrSwapchainImageBaseHeader.Buffermalloc(int capacity)Returns a newXrSwapchainImageBaseHeader.Bufferinstance allocated withmemAlloc.static XrSwapchainImageBaseHeader.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageBaseHeader.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainImageBaseHeadermalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainImageBaseHeaderinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSwapchainImageBaseHeadernext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSwapchainImageBaseHeaderset(int type, long next)Initializes this struct with the specified values.XrSwapchainImageBaseHeaderset(XrSwapchainImageBaseHeader src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSwapchainImageBaseHeadertype(int value)Sets the specified value to thetype()field.
-
-
-
Constructor Detail
-
XrSwapchainImageBaseHeader
public XrSwapchainImageBaseHeader(java.nio.ByteBuffer container)
Creates aXrSwapchainImageBaseHeaderinstance 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
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
theXrStructureTypeof this structure. This base structure itself has no associatedXrStructureTypevalue.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
type
public XrSwapchainImageBaseHeader type(int value)
Sets the specified value to thetype()field.
-
next
public XrSwapchainImageBaseHeader next(long value)
Sets the specified value to thenext()field.
-
set
public XrSwapchainImageBaseHeader set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrSwapchainImageBaseHeader set(XrSwapchainImageBaseHeader src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSwapchainImageBaseHeader malloc()
Returns a newXrSwapchainImageBaseHeaderinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSwapchainImageBaseHeader calloc()
Returns a newXrSwapchainImageBaseHeaderinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSwapchainImageBaseHeader create()
Returns a newXrSwapchainImageBaseHeaderinstance allocated withBufferUtils.
-
create
public static XrSwapchainImageBaseHeader create(long address)
Returns a newXrSwapchainImageBaseHeaderinstance for the specified memory address.
-
createSafe
@Nullable public static XrSwapchainImageBaseHeader createSafe(long address)
-
create
public static XrSwapchainImageBaseHeader create(XrSwapchainImageOpenGLKHR value)
Upcasts the specifiedXrSwapchainImageOpenGLKHRinstance toXrSwapchainImageBaseHeader.
-
create
public static XrSwapchainImageBaseHeader create(XrSwapchainImageOpenGLESKHR value)
Upcasts the specifiedXrSwapchainImageOpenGLESKHRinstance toXrSwapchainImageBaseHeader.
-
create
public static XrSwapchainImageBaseHeader create(XrSwapchainImageVulkanKHR value)
Upcasts the specifiedXrSwapchainImageVulkanKHRinstance toXrSwapchainImageBaseHeader.
-
malloc
public static XrSwapchainImageBaseHeader.Buffer malloc(int capacity)
Returns a newXrSwapchainImageBaseHeader.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSwapchainImageBaseHeader.Buffer calloc(int capacity)
Returns a newXrSwapchainImageBaseHeader.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainImageBaseHeader.Buffer create(int capacity)
Returns a newXrSwapchainImageBaseHeader.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainImageBaseHeader.Buffer create(long address, int capacity)
Create aXrSwapchainImageBaseHeader.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSwapchainImageBaseHeader.Buffer createSafe(long address, int capacity)
-
create
public static XrSwapchainImageBaseHeader.Buffer create(XrSwapchainImageOpenGLKHR.Buffer value)
Upcasts the specifiedXrSwapchainImageOpenGLKHR.Bufferinstance toXrSwapchainImageBaseHeader.Buffer.
-
create
public static XrSwapchainImageBaseHeader.Buffer create(XrSwapchainImageOpenGLESKHR.Buffer value)
Upcasts the specifiedXrSwapchainImageOpenGLESKHR.Bufferinstance toXrSwapchainImageBaseHeader.Buffer.
-
create
public static XrSwapchainImageBaseHeader.Buffer create(XrSwapchainImageVulkanKHR.Buffer value)
Upcasts the specifiedXrSwapchainImageVulkanKHR.Bufferinstance toXrSwapchainImageBaseHeader.Buffer.
-
malloc
public static XrSwapchainImageBaseHeader malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageBaseHeaderinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSwapchainImageBaseHeader calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageBaseHeaderinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSwapchainImageBaseHeader.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageBaseHeader.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSwapchainImageBaseHeader.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainImageBaseHeader.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
-