Package org.lwjgl.openxr
Class XrSwapchainStateBaseHeaderFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSwapchainStateBaseHeaderFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSwapchainStateBaseHeaderFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceBase header for swapchain update state.Description
The
XrSwapchainStateBaseHeaderFBis a base structure that can be overridden by a specific stext:XrSwapchainState* child structure.Valid Usage (Implicit)
- The
XR_FB_swapchain_update_stateextension must be enabled prior to usingXrSwapchainStateBaseHeaderFB typemust be one of the following XrStructureType values:TYPE_SWAPCHAIN_STATE_FOVEATION_FB,TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FB,TYPE_SWAPCHAIN_STATE_SAMPLER_VULKAN_FBnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
GetSwapchainStateFB,UpdateSwapchainFBLayout
struct XrSwapchainStateBaseHeaderFB { XrStructureTypetype(); void *next(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSwapchainStateBaseHeaderFB.BufferAn array ofXrSwapchainStateBaseHeaderFBstructs.
-
Constructor Summary
Constructors Constructor Description XrSwapchainStateBaseHeaderFB(java.nio.ByteBuffer container)Creates aXrSwapchainStateBaseHeaderFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSwapchainStateBaseHeaderFBcalloc()Returns a newXrSwapchainStateBaseHeaderFBinstance allocated withmemCalloc.static XrSwapchainStateBaseHeaderFB.Buffercalloc(int capacity)Returns a newXrSwapchainStateBaseHeaderFB.Bufferinstance allocated withmemCalloc.static XrSwapchainStateBaseHeaderFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateBaseHeaderFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainStateBaseHeaderFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateBaseHeaderFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainStateBaseHeaderFBcreate()Returns a newXrSwapchainStateBaseHeaderFBinstance allocated withBufferUtils.static XrSwapchainStateBaseHeaderFB.Buffercreate(int capacity)Returns a newXrSwapchainStateBaseHeaderFB.Bufferinstance allocated withBufferUtils.static XrSwapchainStateBaseHeaderFBcreate(long address)Returns a newXrSwapchainStateBaseHeaderFBinstance for the specified memory address.static XrSwapchainStateBaseHeaderFB.Buffercreate(long address, int capacity)Create aXrSwapchainStateBaseHeaderFB.Bufferinstance at the specified memory.static XrSwapchainStateBaseHeaderFBcreate(XrSwapchainStateFoveationFB value)Upcasts the specifiedXrSwapchainStateFoveationFBinstance toXrSwapchainStateBaseHeaderFB.static XrSwapchainStateBaseHeaderFB.Buffercreate(XrSwapchainStateFoveationFB.Buffer value)Upcasts the specifiedXrSwapchainStateFoveationFB.Bufferinstance toXrSwapchainStateBaseHeaderFB.Buffer.static XrSwapchainStateBaseHeaderFBcreate(XrSwapchainStateSamplerOpenGLESFB value)Upcasts the specifiedXrSwapchainStateSamplerOpenGLESFBinstance toXrSwapchainStateBaseHeaderFB.static XrSwapchainStateBaseHeaderFB.Buffercreate(XrSwapchainStateSamplerOpenGLESFB.Buffer value)Upcasts the specifiedXrSwapchainStateSamplerOpenGLESFB.Bufferinstance toXrSwapchainStateBaseHeaderFB.Buffer.static XrSwapchainStateBaseHeaderFBcreate(XrSwapchainStateSamplerVulkanFB value)Upcasts the specifiedXrSwapchainStateSamplerVulkanFBinstance toXrSwapchainStateBaseHeaderFB.static XrSwapchainStateBaseHeaderFB.Buffercreate(XrSwapchainStateSamplerVulkanFB.Buffer value)Upcasts the specifiedXrSwapchainStateSamplerVulkanFB.Bufferinstance toXrSwapchainStateBaseHeaderFB.Buffer.static XrSwapchainStateBaseHeaderFBcreateSafe(long address)static XrSwapchainStateBaseHeaderFB.BuffercreateSafe(long address, int capacity)static XrSwapchainStateBaseHeaderFBmalloc()Returns a newXrSwapchainStateBaseHeaderFBinstance allocated withmemAlloc.static XrSwapchainStateBaseHeaderFB.Buffermalloc(int capacity)Returns a newXrSwapchainStateBaseHeaderFB.Bufferinstance allocated withmemAlloc.static XrSwapchainStateBaseHeaderFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateBaseHeaderFB.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainStateBaseHeaderFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateBaseHeaderFBinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSwapchainStateBaseHeaderFBnext(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.XrSwapchainStateBaseHeaderFBset(int type, long next)Initializes this struct with the specified values.XrSwapchainStateBaseHeaderFBset(XrSwapchainStateBaseHeaderFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSwapchainStateBaseHeaderFBtype(int value)Sets the specified value to thetype()field.
-
-
-
Constructor Detail
-
XrSwapchainStateBaseHeaderFB
public XrSwapchainStateBaseHeaderFB(java.nio.ByteBuffer container)
Creates aXrSwapchainStateBaseHeaderFBinstance 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 or this extension.
-
type
public XrSwapchainStateBaseHeaderFB type(int value)
Sets the specified value to thetype()field.
-
next
public XrSwapchainStateBaseHeaderFB next(long value)
Sets the specified value to thenext()field.
-
set
public XrSwapchainStateBaseHeaderFB set(int type, long next)
Initializes this struct with the specified values.
-
set
public XrSwapchainStateBaseHeaderFB set(XrSwapchainStateBaseHeaderFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSwapchainStateBaseHeaderFB malloc()
Returns a newXrSwapchainStateBaseHeaderFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSwapchainStateBaseHeaderFB calloc()
Returns a newXrSwapchainStateBaseHeaderFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSwapchainStateBaseHeaderFB create()
Returns a newXrSwapchainStateBaseHeaderFBinstance allocated withBufferUtils.
-
create
public static XrSwapchainStateBaseHeaderFB create(long address)
Returns a newXrSwapchainStateBaseHeaderFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrSwapchainStateBaseHeaderFB createSafe(long address)
-
create
public static XrSwapchainStateBaseHeaderFB create(XrSwapchainStateFoveationFB value)
Upcasts the specifiedXrSwapchainStateFoveationFBinstance toXrSwapchainStateBaseHeaderFB.
-
create
public static XrSwapchainStateBaseHeaderFB create(XrSwapchainStateSamplerOpenGLESFB value)
Upcasts the specifiedXrSwapchainStateSamplerOpenGLESFBinstance toXrSwapchainStateBaseHeaderFB.
-
create
public static XrSwapchainStateBaseHeaderFB create(XrSwapchainStateSamplerVulkanFB value)
Upcasts the specifiedXrSwapchainStateSamplerVulkanFBinstance toXrSwapchainStateBaseHeaderFB.
-
malloc
public static XrSwapchainStateBaseHeaderFB.Buffer malloc(int capacity)
Returns a newXrSwapchainStateBaseHeaderFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSwapchainStateBaseHeaderFB.Buffer calloc(int capacity)
Returns a newXrSwapchainStateBaseHeaderFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainStateBaseHeaderFB.Buffer create(int capacity)
Returns a newXrSwapchainStateBaseHeaderFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainStateBaseHeaderFB.Buffer create(long address, int capacity)
Create aXrSwapchainStateBaseHeaderFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSwapchainStateBaseHeaderFB.Buffer createSafe(long address, int capacity)
-
create
public static XrSwapchainStateBaseHeaderFB.Buffer create(XrSwapchainStateFoveationFB.Buffer value)
Upcasts the specifiedXrSwapchainStateFoveationFB.Bufferinstance toXrSwapchainStateBaseHeaderFB.Buffer.
-
create
public static XrSwapchainStateBaseHeaderFB.Buffer create(XrSwapchainStateSamplerOpenGLESFB.Buffer value)
Upcasts the specifiedXrSwapchainStateSamplerOpenGLESFB.Bufferinstance toXrSwapchainStateBaseHeaderFB.Buffer.
-
create
public static XrSwapchainStateBaseHeaderFB.Buffer create(XrSwapchainStateSamplerVulkanFB.Buffer value)
Upcasts the specifiedXrSwapchainStateSamplerVulkanFB.Bufferinstance toXrSwapchainStateBaseHeaderFB.Buffer.
-
malloc
public static XrSwapchainStateBaseHeaderFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainStateBaseHeaderFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSwapchainStateBaseHeaderFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainStateBaseHeaderFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSwapchainStateBaseHeaderFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainStateBaseHeaderFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSwapchainStateBaseHeaderFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainStateBaseHeaderFB.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.
-
-