Package org.lwjgl.openxr
Class XrSwapchainStateFoveationFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSwapchainStateFoveationFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSwapchainStateFoveationFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceFoveation swapchain state,xrefs=.Valid Usage (Implicit)
- The
XR_FB_foveationextension must be enabled prior to usingXrSwapchainStateFoveationFB typemust beTYPE_SWAPCHAIN_STATE_FOVEATION_FBnextmust beNULLor a valid pointer to the next structure in a structure chainflagsmust be 0profilemust be a validXrFoveationProfileFBhandle
Layout
struct XrSwapchainStateFoveationFB { XrStructureTypetype(); void *next(); XrSwapchainStateFoveationFlagsFBflags(); XrFoveationProfileFBprofile(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSwapchainStateFoveationFB.BufferAn array ofXrSwapchainStateFoveationFBstructs.
-
Constructor Summary
Constructors Constructor Description XrSwapchainStateFoveationFB(java.nio.ByteBuffer container)Creates aXrSwapchainStateFoveationFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSwapchainStateFoveationFBcalloc()Returns a newXrSwapchainStateFoveationFBinstance allocated withmemCalloc.static XrSwapchainStateFoveationFB.Buffercalloc(int capacity)Returns a newXrSwapchainStateFoveationFB.Bufferinstance allocated withmemCalloc.static XrSwapchainStateFoveationFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateFoveationFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainStateFoveationFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateFoveationFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainStateFoveationFBcreate()Returns a newXrSwapchainStateFoveationFBinstance allocated withBufferUtils.static XrSwapchainStateFoveationFB.Buffercreate(int capacity)Returns a newXrSwapchainStateFoveationFB.Bufferinstance allocated withBufferUtils.static XrSwapchainStateFoveationFBcreate(long address)Returns a newXrSwapchainStateFoveationFBinstance for the specified memory address.static XrSwapchainStateFoveationFB.Buffercreate(long address, int capacity)Create aXrSwapchainStateFoveationFB.Bufferinstance at the specified memory.static XrSwapchainStateFoveationFBcreate(XrSwapchainStateBaseHeaderFB value)Downcasts the specifiedXrSwapchainStateBaseHeaderFBinstance toXrSwapchainStateFoveationFB.static XrSwapchainStateFoveationFB.Buffercreate(XrSwapchainStateBaseHeaderFB.Buffer value)Downcasts the specifiedXrSwapchainStateBaseHeaderFB.Bufferinstance toXrSwapchainStateFoveationFB.Buffer.static XrSwapchainStateFoveationFBcreateSafe(long address)static XrSwapchainStateFoveationFB.BuffercreateSafe(long address, int capacity)longflags()a bitmask ofXrSwapchainStateFoveationFlagBitsFBwhich indicate various characteristics of how and when the foveation properties of the swapchain must be updated.XrSwapchainStateFoveationFBflags(long value)Sets the specified value to theflags()field.static XrSwapchainStateFoveationFBmalloc()Returns a newXrSwapchainStateFoveationFBinstance allocated withmemAlloc.static XrSwapchainStateFoveationFB.Buffermalloc(int capacity)Returns a newXrSwapchainStateFoveationFB.Bufferinstance allocated withmemAlloc.static XrSwapchainStateFoveationFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateFoveationFB.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainStateFoveationFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateFoveationFBinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSwapchainStateFoveationFBnext(long value)Sets the specified value to thenext()field.static longnflags(long struct)Unsafe version offlags().static voidnflags(long struct, long value)Unsafe version offlags.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static longnprofile(long struct)Unsafe version ofprofile().static voidnprofile(long struct, XrFoveationProfileFB value)Unsafe version ofprofile.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.longprofile()anXrFoveationProfileFBdefining the desired foveation properties to be applied to the swapchain.XrSwapchainStateFoveationFBprofile(XrFoveationProfileFB value)Sets the specified value to theprofile()field.XrSwapchainStateFoveationFBset(int type, long next, long flags, XrFoveationProfileFB profile)Initializes this struct with the specified values.XrSwapchainStateFoveationFBset(XrSwapchainStateFoveationFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSwapchainStateFoveationFBtype(int value)Sets the specified value to thetype()field.XrSwapchainStateFoveationFBtype$Default()Sets theTYPE_SWAPCHAIN_STATE_FOVEATION_FBvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrSwapchainStateFoveationFB
public XrSwapchainStateFoveationFB(java.nio.ByteBuffer container)
Creates aXrSwapchainStateFoveationFBinstance 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.
-
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.
-
flags
public long flags()
a bitmask ofXrSwapchainStateFoveationFlagBitsFBwhich indicate various characteristics of how and when the foveation properties of the swapchain must be updated.
-
profile
public long profile()
anXrFoveationProfileFBdefining the desired foveation properties to be applied to the swapchain.
-
type
public XrSwapchainStateFoveationFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSwapchainStateFoveationFB type$Default()
Sets theTYPE_SWAPCHAIN_STATE_FOVEATION_FBvalue to thetype()field.
-
next
public XrSwapchainStateFoveationFB next(long value)
Sets the specified value to thenext()field.
-
flags
public XrSwapchainStateFoveationFB flags(long value)
Sets the specified value to theflags()field.
-
profile
public XrSwapchainStateFoveationFB profile(XrFoveationProfileFB value)
Sets the specified value to theprofile()field.
-
set
public XrSwapchainStateFoveationFB set(int type, long next, long flags, XrFoveationProfileFB profile)
Initializes this struct with the specified values.
-
set
public XrSwapchainStateFoveationFB set(XrSwapchainStateFoveationFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSwapchainStateFoveationFB malloc()
Returns a newXrSwapchainStateFoveationFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSwapchainStateFoveationFB calloc()
Returns a newXrSwapchainStateFoveationFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSwapchainStateFoveationFB create()
Returns a newXrSwapchainStateFoveationFBinstance allocated withBufferUtils.
-
create
public static XrSwapchainStateFoveationFB create(long address)
Returns a newXrSwapchainStateFoveationFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrSwapchainStateFoveationFB createSafe(long address)
-
create
public static XrSwapchainStateFoveationFB create(XrSwapchainStateBaseHeaderFB value)
Downcasts the specifiedXrSwapchainStateBaseHeaderFBinstance toXrSwapchainStateFoveationFB.
-
malloc
public static XrSwapchainStateFoveationFB.Buffer malloc(int capacity)
Returns a newXrSwapchainStateFoveationFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSwapchainStateFoveationFB.Buffer calloc(int capacity)
Returns a newXrSwapchainStateFoveationFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainStateFoveationFB.Buffer create(int capacity)
Returns a newXrSwapchainStateFoveationFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainStateFoveationFB.Buffer create(long address, int capacity)
Create aXrSwapchainStateFoveationFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSwapchainStateFoveationFB.Buffer createSafe(long address, int capacity)
-
create
public static XrSwapchainStateFoveationFB.Buffer create(XrSwapchainStateBaseHeaderFB.Buffer value)
Downcasts the specifiedXrSwapchainStateBaseHeaderFB.Bufferinstance toXrSwapchainStateFoveationFB.Buffer.
-
malloc
public static XrSwapchainStateFoveationFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainStateFoveationFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSwapchainStateFoveationFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainStateFoveationFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSwapchainStateFoveationFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainStateFoveationFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSwapchainStateFoveationFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainStateFoveationFB.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().
-
nflags
public static long nflags(long struct)
Unsafe version offlags().
-
nprofile
public static long nprofile(long struct)
Unsafe version ofprofile().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nflags
public static void nflags(long struct, long value)Unsafe version offlags.
-
nprofile
public static void nprofile(long struct, XrFoveationProfileFB value)Unsafe version ofprofile.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-