Package org.lwjgl.openxr
Class XrSwapchainCreateInfoFoveationFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSwapchainCreateInfoFoveationFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSwapchainCreateInfoFoveationFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe information to create a swapchain supporting foveation.Valid Usage (Implicit)
- The
XR_FB_foveationextension must be enabled prior to usingXrSwapchainCreateInfoFoveationFB typemust beTYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FBnextmust beNULLor a valid pointer to the next structure in a structure chainflagsmust be 0 or a valid combination ofXrSwapchainCreateFoveationFlagBitsFBvalues
Layout
struct XrSwapchainCreateInfoFoveationFB { XrStructureTypetype(); void *next(); XrSwapchainCreateFoveationFlagsFBflags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSwapchainCreateInfoFoveationFB.BufferAn array ofXrSwapchainCreateInfoFoveationFBstructs.
-
Constructor Summary
Constructors Constructor Description XrSwapchainCreateInfoFoveationFB(java.nio.ByteBuffer container)Creates aXrSwapchainCreateInfoFoveationFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSwapchainCreateInfoFoveationFBcalloc()Returns a newXrSwapchainCreateInfoFoveationFBinstance allocated withmemCalloc.static XrSwapchainCreateInfoFoveationFB.Buffercalloc(int capacity)Returns a newXrSwapchainCreateInfoFoveationFB.Bufferinstance allocated withmemCalloc.static XrSwapchainCreateInfoFoveationFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainCreateInfoFoveationFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainCreateInfoFoveationFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainCreateInfoFoveationFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainCreateInfoFoveationFBcreate()Returns a newXrSwapchainCreateInfoFoveationFBinstance allocated withBufferUtils.static XrSwapchainCreateInfoFoveationFB.Buffercreate(int capacity)Returns a newXrSwapchainCreateInfoFoveationFB.Bufferinstance allocated withBufferUtils.static XrSwapchainCreateInfoFoveationFBcreate(long address)Returns a newXrSwapchainCreateInfoFoveationFBinstance for the specified memory address.static XrSwapchainCreateInfoFoveationFB.Buffercreate(long address, int capacity)Create aXrSwapchainCreateInfoFoveationFB.Bufferinstance at the specified memory.static XrSwapchainCreateInfoFoveationFBcreateSafe(long address)static XrSwapchainCreateInfoFoveationFB.BuffercreateSafe(long address, int capacity)longflags()a bitmask ofXrSwapchainCreateFoveationFlagBitsFBwhich indicate various characteristics for how foveation is enabled on the swapchain.XrSwapchainCreateInfoFoveationFBflags(long value)Sets the specified value to theflags()field.static XrSwapchainCreateInfoFoveationFBmalloc()Returns a newXrSwapchainCreateInfoFoveationFBinstance allocated withmemAlloc.static XrSwapchainCreateInfoFoveationFB.Buffermalloc(int capacity)Returns a newXrSwapchainCreateInfoFoveationFB.Bufferinstance allocated withmemAlloc.static XrSwapchainCreateInfoFoveationFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainCreateInfoFoveationFB.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainCreateInfoFoveationFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainCreateInfoFoveationFBinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSwapchainCreateInfoFoveationFBnext(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 intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSwapchainCreateInfoFoveationFBset(int type, long next, long flags)Initializes this struct with the specified values.XrSwapchainCreateInfoFoveationFBset(XrSwapchainCreateInfoFoveationFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSwapchainCreateInfoFoveationFBtype(int value)Sets the specified value to thetype()field.XrSwapchainCreateInfoFoveationFBtype$Default()Sets theTYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FBvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSwapchainCreateInfoFoveationFB
public XrSwapchainCreateInfoFoveationFB(java.nio.ByteBuffer container)
Creates aXrSwapchainCreateInfoFoveationFBinstance 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 ofXrSwapchainCreateFoveationFlagBitsFBwhich indicate various characteristics for how foveation is enabled on the swapchain.
-
type
public XrSwapchainCreateInfoFoveationFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSwapchainCreateInfoFoveationFB type$Default()
Sets theTYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FBvalue to thetype()field.
-
next
public XrSwapchainCreateInfoFoveationFB next(long value)
Sets the specified value to thenext()field.
-
flags
public XrSwapchainCreateInfoFoveationFB flags(long value)
Sets the specified value to theflags()field.
-
set
public XrSwapchainCreateInfoFoveationFB set(int type, long next, long flags)
Initializes this struct with the specified values.
-
set
public XrSwapchainCreateInfoFoveationFB set(XrSwapchainCreateInfoFoveationFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSwapchainCreateInfoFoveationFB malloc()
Returns a newXrSwapchainCreateInfoFoveationFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSwapchainCreateInfoFoveationFB calloc()
Returns a newXrSwapchainCreateInfoFoveationFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSwapchainCreateInfoFoveationFB create()
Returns a newXrSwapchainCreateInfoFoveationFBinstance allocated withBufferUtils.
-
create
public static XrSwapchainCreateInfoFoveationFB create(long address)
Returns a newXrSwapchainCreateInfoFoveationFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrSwapchainCreateInfoFoveationFB createSafe(long address)
-
malloc
public static XrSwapchainCreateInfoFoveationFB.Buffer malloc(int capacity)
Returns a newXrSwapchainCreateInfoFoveationFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSwapchainCreateInfoFoveationFB.Buffer calloc(int capacity)
Returns a newXrSwapchainCreateInfoFoveationFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainCreateInfoFoveationFB.Buffer create(int capacity)
Returns a newXrSwapchainCreateInfoFoveationFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainCreateInfoFoveationFB.Buffer create(long address, int capacity)
Create aXrSwapchainCreateInfoFoveationFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSwapchainCreateInfoFoveationFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSwapchainCreateInfoFoveationFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainCreateInfoFoveationFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSwapchainCreateInfoFoveationFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainCreateInfoFoveationFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSwapchainCreateInfoFoveationFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainCreateInfoFoveationFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSwapchainCreateInfoFoveationFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainCreateInfoFoveationFB.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().
-
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.
-
-