Package org.lwjgl.openxr
Class XrSystemFoveatedRenderingPropertiesVARJO
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSystemFoveatedRenderingPropertiesVARJO
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSystemFoveatedRenderingPropertiesVARJO extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSystem property for foveated rendering.Description
The runtime should return
TRUEforsupportsFoveatedRenderingwhen rendering gaze is available in the system. An application should avoid using foveated rendering functionality whensupportsFoveatedRenderingisFALSE.Valid Usage (Implicit)
- The
XR_VARJO_foveated_renderingextension must be enabled prior to usingXrSystemFoveatedRenderingPropertiesVARJO typemust beTYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJOnextmust beNULLor a valid pointer to the next structure in a structure chain
Layout
struct XrSystemFoveatedRenderingPropertiesVARJO { XrStructureTypetype(); void *next(); XrBool32supportsFoveatedRendering(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSystemFoveatedRenderingPropertiesVARJO.BufferAn array ofXrSystemFoveatedRenderingPropertiesVARJOstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSUPPORTSFOVEATEDRENDERING
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSystemFoveatedRenderingPropertiesVARJO(java.nio.ByteBuffer container)Creates aXrSystemFoveatedRenderingPropertiesVARJOinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSystemFoveatedRenderingPropertiesVARJOcalloc()Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance allocated withmemCalloc.static XrSystemFoveatedRenderingPropertiesVARJO.Buffercalloc(int capacity)Returns a newXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance allocated withmemCalloc.static XrSystemFoveatedRenderingPropertiesVARJO.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemFoveatedRenderingPropertiesVARJOcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSystemFoveatedRenderingPropertiesVARJOcreate()Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance allocated withBufferUtils.static XrSystemFoveatedRenderingPropertiesVARJO.Buffercreate(int capacity)Returns a newXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance allocated withBufferUtils.static XrSystemFoveatedRenderingPropertiesVARJOcreate(long address)Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance for the specified memory address.static XrSystemFoveatedRenderingPropertiesVARJO.Buffercreate(long address, int capacity)Create aXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance at the specified memory.static XrSystemFoveatedRenderingPropertiesVARJOcreateSafe(long address)static XrSystemFoveatedRenderingPropertiesVARJO.BuffercreateSafe(long address, int capacity)static XrSystemFoveatedRenderingPropertiesVARJOmalloc()Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance allocated withmemAlloc.static XrSystemFoveatedRenderingPropertiesVARJO.Buffermalloc(int capacity)Returns a newXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance allocated withmemAlloc.static XrSystemFoveatedRenderingPropertiesVARJO.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance allocated on the specifiedMemoryStack.static XrSystemFoveatedRenderingPropertiesVARJOmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSystemFoveatedRenderingPropertiesVARJOnext(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 intnsupportsFoveatedRendering(long struct)Unsafe version ofsupportsFoveatedRendering().static voidnsupportsFoveatedRendering(long struct, int value)Unsafe version ofsupportsFoveatedRendering.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrSystemFoveatedRenderingPropertiesVARJOset(int type, long next, boolean supportsFoveatedRendering)Initializes this struct with the specified values.XrSystemFoveatedRenderingPropertiesVARJOset(XrSystemFoveatedRenderingPropertiesVARJO src)Copies the specified struct data to this struct.intsizeof()booleansupportsFoveatedRendering()anXrBool32, indicating if current system is capable of performoning foveated rendering.XrSystemFoveatedRenderingPropertiesVARJOsupportsFoveatedRendering(boolean value)Sets the specified value to thesupportsFoveatedRendering()field.inttype()theXrStructureTypeof this structure.XrSystemFoveatedRenderingPropertiesVARJOtype(int value)Sets the specified value to thetype()field.XrSystemFoveatedRenderingPropertiesVARJOtype$Default()Sets theTYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJOvalue to thetype()field.
-
-
-
Constructor Detail
-
XrSystemFoveatedRenderingPropertiesVARJO
public XrSystemFoveatedRenderingPropertiesVARJO(java.nio.ByteBuffer container)
Creates aXrSystemFoveatedRenderingPropertiesVARJOinstance 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.
-
supportsFoveatedRendering
public boolean supportsFoveatedRendering()
anXrBool32, indicating if current system is capable of performoning foveated rendering.
-
type
public XrSystemFoveatedRenderingPropertiesVARJO type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSystemFoveatedRenderingPropertiesVARJO type$Default()
Sets theTYPE_SYSTEM_FOVEATED_RENDERING_PROPERTIES_VARJOvalue to thetype()field.
-
next
public XrSystemFoveatedRenderingPropertiesVARJO next(long value)
Sets the specified value to thenext()field.
-
supportsFoveatedRendering
public XrSystemFoveatedRenderingPropertiesVARJO supportsFoveatedRendering(boolean value)
Sets the specified value to thesupportsFoveatedRendering()field.
-
set
public XrSystemFoveatedRenderingPropertiesVARJO set(int type, long next, boolean supportsFoveatedRendering)
Initializes this struct with the specified values.
-
set
public XrSystemFoveatedRenderingPropertiesVARJO set(XrSystemFoveatedRenderingPropertiesVARJO src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSystemFoveatedRenderingPropertiesVARJO malloc()
Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSystemFoveatedRenderingPropertiesVARJO calloc()
Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSystemFoveatedRenderingPropertiesVARJO create()
Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance allocated withBufferUtils.
-
create
public static XrSystemFoveatedRenderingPropertiesVARJO create(long address)
Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance for the specified memory address.
-
createSafe
@Nullable public static XrSystemFoveatedRenderingPropertiesVARJO createSafe(long address)
-
malloc
public static XrSystemFoveatedRenderingPropertiesVARJO.Buffer malloc(int capacity)
Returns a newXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSystemFoveatedRenderingPropertiesVARJO.Buffer calloc(int capacity)
Returns a newXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemFoveatedRenderingPropertiesVARJO.Buffer create(int capacity)
Returns a newXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSystemFoveatedRenderingPropertiesVARJO.Buffer create(long address, int capacity)
Create aXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSystemFoveatedRenderingPropertiesVARJO.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSystemFoveatedRenderingPropertiesVARJO malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSystemFoveatedRenderingPropertiesVARJO calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemFoveatedRenderingPropertiesVARJOinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSystemFoveatedRenderingPropertiesVARJO.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemFoveatedRenderingPropertiesVARJO.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSystemFoveatedRenderingPropertiesVARJO.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSystemFoveatedRenderingPropertiesVARJO.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().
-
nsupportsFoveatedRendering
public static int nsupportsFoveatedRendering(long struct)
Unsafe version ofsupportsFoveatedRendering().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsupportsFoveatedRendering
public static void nsupportsFoveatedRendering(long struct, int value)Unsafe version ofsupportsFoveatedRendering.
-
-