Package org.lwjgl.openxr
Class XrViewLocateFoveatedRenderingVARJO
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrViewLocateFoveatedRenderingVARJO
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrViewLocateFoveatedRenderingVARJO extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceRequest foveated FoV.Description
The runtime must return foveated field of view when
foveatedRenderingActiveisTRUE.Valid Usage (Implicit)
- The
XR_VARJO_foveated_renderingextension must be enabled prior to usingXrViewLocateFoveatedRenderingVARJO typemust beTYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJOnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
Layout
struct XrViewLocateFoveatedRenderingVARJO { XrStructureTypetype(); void const *next(); XrBool32foveatedRenderingActive(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrViewLocateFoveatedRenderingVARJO.BufferAn array ofXrViewLocateFoveatedRenderingVARJOstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFOVEATEDRENDERINGACTIVE
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrViewLocateFoveatedRenderingVARJO(java.nio.ByteBuffer container)Creates aXrViewLocateFoveatedRenderingVARJOinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrViewLocateFoveatedRenderingVARJOcalloc()Returns a newXrViewLocateFoveatedRenderingVARJOinstance allocated withmemCalloc.static XrViewLocateFoveatedRenderingVARJO.Buffercalloc(int capacity)Returns a newXrViewLocateFoveatedRenderingVARJO.Bufferinstance allocated withmemCalloc.static XrViewLocateFoveatedRenderingVARJO.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViewLocateFoveatedRenderingVARJO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViewLocateFoveatedRenderingVARJOcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViewLocateFoveatedRenderingVARJOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViewLocateFoveatedRenderingVARJOcreate()Returns a newXrViewLocateFoveatedRenderingVARJOinstance allocated withBufferUtils.static XrViewLocateFoveatedRenderingVARJO.Buffercreate(int capacity)Returns a newXrViewLocateFoveatedRenderingVARJO.Bufferinstance allocated withBufferUtils.static XrViewLocateFoveatedRenderingVARJOcreate(long address)Returns a newXrViewLocateFoveatedRenderingVARJOinstance for the specified memory address.static XrViewLocateFoveatedRenderingVARJO.Buffercreate(long address, int capacity)Create aXrViewLocateFoveatedRenderingVARJO.Bufferinstance at the specified memory.static XrViewLocateFoveatedRenderingVARJOcreateSafe(long address)static XrViewLocateFoveatedRenderingVARJO.BuffercreateSafe(long address, int capacity)booleanfoveatedRenderingActive()anXrBool32, indicating if runtime should return foveated FoV.XrViewLocateFoveatedRenderingVARJOfoveatedRenderingActive(boolean value)Sets the specified value to thefoveatedRenderingActive()field.static XrViewLocateFoveatedRenderingVARJOmalloc()Returns a newXrViewLocateFoveatedRenderingVARJOinstance allocated withmemAlloc.static XrViewLocateFoveatedRenderingVARJO.Buffermalloc(int capacity)Returns a newXrViewLocateFoveatedRenderingVARJO.Bufferinstance allocated withmemAlloc.static XrViewLocateFoveatedRenderingVARJO.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViewLocateFoveatedRenderingVARJO.Bufferinstance allocated on the specifiedMemoryStack.static XrViewLocateFoveatedRenderingVARJOmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViewLocateFoveatedRenderingVARJOinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrViewLocateFoveatedRenderingVARJOnext(long value)Sets the specified value to thenext()field.static intnfoveatedRenderingActive(long struct)Unsafe version offoveatedRenderingActive().static voidnfoveatedRenderingActive(long struct, int value)Unsafe version offoveatedRenderingActive.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.XrViewLocateFoveatedRenderingVARJOset(int type, long next, boolean foveatedRenderingActive)Initializes this struct with the specified values.XrViewLocateFoveatedRenderingVARJOset(XrViewLocateFoveatedRenderingVARJO src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrViewLocateFoveatedRenderingVARJOtype(int value)Sets the specified value to thetype()field.XrViewLocateFoveatedRenderingVARJOtype$Default()Sets theTYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJOvalue to thetype()field.
-
-
-
Constructor Detail
-
XrViewLocateFoveatedRenderingVARJO
public XrViewLocateFoveatedRenderingVARJO(java.nio.ByteBuffer container)
Creates aXrViewLocateFoveatedRenderingVARJOinstance 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.
-
foveatedRenderingActive
public boolean foveatedRenderingActive()
anXrBool32, indicating if runtime should return foveated FoV.
-
type
public XrViewLocateFoveatedRenderingVARJO type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrViewLocateFoveatedRenderingVARJO type$Default()
Sets theTYPE_VIEW_LOCATE_FOVEATED_RENDERING_VARJOvalue to thetype()field.
-
next
public XrViewLocateFoveatedRenderingVARJO next(long value)
Sets the specified value to thenext()field.
-
foveatedRenderingActive
public XrViewLocateFoveatedRenderingVARJO foveatedRenderingActive(boolean value)
Sets the specified value to thefoveatedRenderingActive()field.
-
set
public XrViewLocateFoveatedRenderingVARJO set(int type, long next, boolean foveatedRenderingActive)
Initializes this struct with the specified values.
-
set
public XrViewLocateFoveatedRenderingVARJO set(XrViewLocateFoveatedRenderingVARJO src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrViewLocateFoveatedRenderingVARJO malloc()
Returns a newXrViewLocateFoveatedRenderingVARJOinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrViewLocateFoveatedRenderingVARJO calloc()
Returns a newXrViewLocateFoveatedRenderingVARJOinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrViewLocateFoveatedRenderingVARJO create()
Returns a newXrViewLocateFoveatedRenderingVARJOinstance allocated withBufferUtils.
-
create
public static XrViewLocateFoveatedRenderingVARJO create(long address)
Returns a newXrViewLocateFoveatedRenderingVARJOinstance for the specified memory address.
-
createSafe
@Nullable public static XrViewLocateFoveatedRenderingVARJO createSafe(long address)
-
malloc
public static XrViewLocateFoveatedRenderingVARJO.Buffer malloc(int capacity)
Returns a newXrViewLocateFoveatedRenderingVARJO.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrViewLocateFoveatedRenderingVARJO.Buffer calloc(int capacity)
Returns a newXrViewLocateFoveatedRenderingVARJO.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrViewLocateFoveatedRenderingVARJO.Buffer create(int capacity)
Returns a newXrViewLocateFoveatedRenderingVARJO.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrViewLocateFoveatedRenderingVARJO.Buffer create(long address, int capacity)
Create aXrViewLocateFoveatedRenderingVARJO.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrViewLocateFoveatedRenderingVARJO.Buffer createSafe(long address, int capacity)
-
malloc
public static XrViewLocateFoveatedRenderingVARJO malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViewLocateFoveatedRenderingVARJOinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrViewLocateFoveatedRenderingVARJO calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViewLocateFoveatedRenderingVARJOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrViewLocateFoveatedRenderingVARJO.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViewLocateFoveatedRenderingVARJO.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrViewLocateFoveatedRenderingVARJO.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViewLocateFoveatedRenderingVARJO.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().
-
nfoveatedRenderingActive
public static int nfoveatedRenderingActive(long struct)
Unsafe version offoveatedRenderingActive().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nfoveatedRenderingActive
public static void nfoveatedRenderingActive(long struct, int value)Unsafe version offoveatedRenderingActive.
-
-