Class XrSwapchainStateSamplerOpenGLESFB
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
Description
When XrSwapchainStateSamplerOpenGLESFB is specified in the call to UpdateSwapchainFB, texture sampler state for all images in the XrSwapchain will be updated for both the application and compositor processes.
For most cases, the sampler state update is only required compositor-side, as that is where the swapchain images are sampled. For completeness, the application-side sampler state is additionally updated to support cases where the application may choose to directly sample the swapchain images.
Applications are expected to handle synchronization of the sampler state update with application-side rendering. Similarly, the compositor will synchronize the sampler state update with rendering of the next compositor frame.
An EGLContext, either the EGLContext bound during XrSwapchain creation or an EGLContext in the same share group, is required to be bound on the application calling thread. Current texture bindings may be altered by the call, including the active texture.
When XrSwapchainStateSamplerOpenGLESFB is specified in the call to GetSwapchainStateFB, the sampler state will be populated with the current swapchain sampler state.
To use XrSwapchainStateSamplerOpenGLESFB, USE_GRAPHICS_API_OPENGL_ES must be defined before including openxr_platform.h.
Valid Usage (Implicit)
- The
XR_FB_swapchain_update_state_opengl_esextension must be enabled prior to usingXrSwapchainStateSamplerOpenGLESFB typemust beTYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FBnextmust beNULLor a valid pointer to the next structure in a structure chainminFiltermust be a validEGLenumvaluemagFiltermust be a validEGLenumvaluewrapModeSmust be a validEGLenumvaluewrapModeTmust be a validEGLenumvalueswizzleRedmust be a validEGLenumvalueswizzleGreenmust be a validEGLenumvalueswizzleBluemust be a validEGLenumvalueswizzleAlphamust be a validEGLenumvalue
See Also
XrColor4f, GetSwapchainStateFB, UpdateSwapchainFB
Layout
struct XrSwapchainStateSamplerOpenGLESFB {
XrStructureType type();
void * next();
EGLenum minFilter();
EGLenum magFilter();
EGLenum wrapModeS();
EGLenum wrapModeT();
EGLenum swizzleRed();
EGLenum swizzleGreen();
EGLenum swizzleBlue();
EGLenum swizzleAlpha();
float maxAnisotropy();
XrColor4f borderColor();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofXrSwapchainStateSamplerOpenGLESFBstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSwapchainStateSamplerOpenGLESFB(ByteBuffer container) Creates aXrSwapchainStateSamplerOpenGLESFBinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionan RGBA color to be used as border texels.borderColor(Consumer<XrColor4f> consumer) Passes theborderColor()field to the specifiedConsumer.borderColor(XrColor4f value) Copies the specifiedXrColor4fto theborderColor()field.calloc()Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withmemCalloc.calloc(int capacity) Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withBufferUtils.create(int capacity) Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withBufferUtils.create(long address) Returns a newXrSwapchainStateSamplerOpenGLESFBinstance for the specified memory address.create(long address, int capacity) Create aXrSwapchainStateSamplerOpenGLESFB.Bufferinstance at the specified memory.Downcasts the specifiedXrSwapchainStateBaseHeaderFBinstance toXrSwapchainStateSamplerOpenGLESFB.Downcasts the specifiedXrSwapchainStateBaseHeaderFB.Bufferinstance toXrSwapchainStateSamplerOpenGLESFB.Buffer.static @Nullable XrSwapchainStateSamplerOpenGLESFBcreateSafe(long address) static @Nullable XrSwapchainStateSamplerOpenGLESFB.BuffercreateSafe(long address, int capacity) inta valid Android OpenGL ESEGLenum.magFilter(int value) Sets the specified value to themagFilter()field.malloc()Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withmemAlloc.malloc(int capacity) Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated on the specifiedMemoryStack.floata valid float used to represent max anisotropy.maxAnisotropy(float value) Sets the specified value to themaxAnisotropy()field.inta valid Android OpenGL ESEGLenum.minFilter(int value) Sets the specified value to theminFilter()field.static XrColor4fnborderColor(long struct) Unsafe version ofborderColor().static voidnborderColor(long struct, XrColor4f value) Unsafe version ofborderColor.longnext()NULLor a pointer to the next structure in a structure chain.next(long value) Sets the specified value to thenext()field.static intnmagFilter(long struct) Unsafe version ofmagFilter().static voidnmagFilter(long struct, int value) Unsafe version ofmagFilter.static floatnmaxAnisotropy(long struct) Unsafe version ofmaxAnisotropy().static voidnmaxAnisotropy(long struct, float value) Unsafe version ofmaxAnisotropy.static intnminFilter(long struct) Unsafe version ofminFilter().static voidnminFilter(long struct, int value) Unsafe version ofminFilter.static longnnext(long struct) Unsafe version ofnext().static voidnnext(long struct, long value) Unsafe version ofnext.static intnswizzleAlpha(long struct) Unsafe version ofswizzleAlpha().static voidnswizzleAlpha(long struct, int value) Unsafe version ofswizzleAlpha.static intnswizzleBlue(long struct) Unsafe version ofswizzleBlue().static voidnswizzleBlue(long struct, int value) Unsafe version ofswizzleBlue.static intnswizzleGreen(long struct) Unsafe version ofswizzleGreen().static voidnswizzleGreen(long struct, int value) Unsafe version ofswizzleGreen.static intnswizzleRed(long struct) Unsafe version ofswizzleRed().static voidnswizzleRed(long struct, int value) Unsafe version ofswizzleRed.static intntype(long struct) Unsafe version oftype().static voidntype(long struct, int value) Unsafe version oftype.static intnwrapModeS(long struct) Unsafe version ofwrapModeS().static voidnwrapModeS(long struct, int value) Unsafe version ofwrapModeS.static intnwrapModeT(long struct) Unsafe version ofwrapModeT().static voidnwrapModeT(long struct, int value) Unsafe version ofwrapModeT.set(int type, long next, int minFilter, int magFilter, int wrapModeS, int wrapModeT, int swizzleRed, int swizzleGreen, int swizzleBlue, int swizzleAlpha, float maxAnisotropy, XrColor4f borderColor) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()inta valid Android OpenGL ESEGLenum.swizzleAlpha(int value) Sets the specified value to theswizzleAlpha()field.inta valid Android OpenGL ESEGLenum.swizzleBlue(int value) Sets the specified value to theswizzleBlue()field.inta valid Android OpenGL ESEGLenum.swizzleGreen(int value) Sets the specified value to theswizzleGreen()field.inta valid Android OpenGL ESEGLenum.swizzleRed(int value) Sets the specified value to theswizzleRed()field.inttype()theXrStructureTypeof this structure.type(int value) Sets the specified value to thetype()field.Sets theTYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FBvalue to thetype()field.inta valid Android OpenGL ESEGLenum.wrapModeS(int value) Sets the specified value to thewrapModeS()field.inta valid Android OpenGL ESEGLenum.wrapModeT(int value) Sets the specified value to thewrapModeT()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
NEXT
public static final int NEXTThe struct member offsets. -
MINFILTER
public static final int MINFILTERThe struct member offsets. -
MAGFILTER
public static final int MAGFILTERThe struct member offsets. -
WRAPMODES
public static final int WRAPMODESThe struct member offsets. -
WRAPMODET
public static final int WRAPMODETThe struct member offsets. -
SWIZZLERED
public static final int SWIZZLEREDThe struct member offsets. -
SWIZZLEGREEN
public static final int SWIZZLEGREENThe struct member offsets. -
SWIZZLEBLUE
public static final int SWIZZLEBLUEThe struct member offsets. -
SWIZZLEALPHA
public static final int SWIZZLEALPHAThe struct member offsets. -
MAXANISOTROPY
public static final int MAXANISOTROPYThe struct member offsets. -
BORDERCOLOR
public static final int BORDERCOLORThe struct member offsets.
-
-
Constructor Details
-
XrSwapchainStateSamplerOpenGLESFB
Creates aXrSwapchainStateSamplerOpenGLESFBinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<XrSwapchainStateSamplerOpenGLESFB>
-
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. -
minFilter
public int minFilter()a valid Android OpenGL ESEGLenum. -
magFilter
public int magFilter()a valid Android OpenGL ESEGLenum. -
wrapModeS
public int wrapModeS()a valid Android OpenGL ESEGLenum. -
wrapModeT
public int wrapModeT()a valid Android OpenGL ESEGLenum. -
swizzleRed
public int swizzleRed()a valid Android OpenGL ESEGLenum. -
swizzleGreen
public int swizzleGreen()a valid Android OpenGL ESEGLenum. -
swizzleBlue
public int swizzleBlue()a valid Android OpenGL ESEGLenum. -
swizzleAlpha
public int swizzleAlpha()a valid Android OpenGL ESEGLenum. -
maxAnisotropy
public float maxAnisotropy()a valid float used to represent max anisotropy. -
borderColor
an RGBA color to be used as border texels. -
type
Sets the specified value to thetype()field. -
type$Default
Sets theTYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FBvalue to thetype()field. -
next
Sets the specified value to thenext()field. -
minFilter
Sets the specified value to theminFilter()field. -
magFilter
Sets the specified value to themagFilter()field. -
wrapModeS
Sets the specified value to thewrapModeS()field. -
wrapModeT
Sets the specified value to thewrapModeT()field. -
swizzleRed
Sets the specified value to theswizzleRed()field. -
swizzleGreen
Sets the specified value to theswizzleGreen()field. -
swizzleBlue
Sets the specified value to theswizzleBlue()field. -
swizzleAlpha
Sets the specified value to theswizzleAlpha()field. -
maxAnisotropy
Sets the specified value to themaxAnisotropy()field. -
borderColor
Copies the specifiedXrColor4fto theborderColor()field. -
borderColor
Passes theborderColor()field to the specifiedConsumer. -
set
public XrSwapchainStateSamplerOpenGLESFB set(int type, long next, int minFilter, int magFilter, int wrapModeS, int wrapModeT, int swizzleRed, int swizzleGreen, int swizzleBlue, int swizzleAlpha, float maxAnisotropy, XrColor4f borderColor) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withBufferUtils. -
create
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance for the specified memory address. -
createSafe
-
create
Downcasts the specifiedXrSwapchainStateBaseHeaderFBinstance toXrSwapchainStateSamplerOpenGLESFB. -
malloc
Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSwapchainStateSamplerOpenGLESFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable XrSwapchainStateSamplerOpenGLESFB.Buffer createSafe(long address, int capacity) -
create
public static XrSwapchainStateSamplerOpenGLESFB.Buffer create(XrSwapchainStateBaseHeaderFB.Buffer value) Downcasts the specifiedXrSwapchainStateBaseHeaderFB.Bufferinstance toXrSwapchainStateSamplerOpenGLESFB.Buffer. -
malloc
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSwapchainStateSamplerOpenGLESFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static XrSwapchainStateSamplerOpenGLESFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ntype
public static int ntype(long struct) Unsafe version oftype(). -
nnext
public static long nnext(long struct) Unsafe version ofnext(). -
nminFilter
public static int nminFilter(long struct) Unsafe version ofminFilter(). -
nmagFilter
public static int nmagFilter(long struct) Unsafe version ofmagFilter(). -
nwrapModeS
public static int nwrapModeS(long struct) Unsafe version ofwrapModeS(). -
nwrapModeT
public static int nwrapModeT(long struct) Unsafe version ofwrapModeT(). -
nswizzleRed
public static int nswizzleRed(long struct) Unsafe version ofswizzleRed(). -
nswizzleGreen
public static int nswizzleGreen(long struct) Unsafe version ofswizzleGreen(). -
nswizzleBlue
public static int nswizzleBlue(long struct) Unsafe version ofswizzleBlue(). -
nswizzleAlpha
public static int nswizzleAlpha(long struct) Unsafe version ofswizzleAlpha(). -
nmaxAnisotropy
public static float nmaxAnisotropy(long struct) Unsafe version ofmaxAnisotropy(). -
nborderColor
Unsafe version ofborderColor(). -
ntype
public static void ntype(long struct, int value) Unsafe version oftype. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext. -
nminFilter
public static void nminFilter(long struct, int value) Unsafe version ofminFilter. -
nmagFilter
public static void nmagFilter(long struct, int value) Unsafe version ofmagFilter. -
nwrapModeS
public static void nwrapModeS(long struct, int value) Unsafe version ofwrapModeS. -
nwrapModeT
public static void nwrapModeT(long struct, int value) Unsafe version ofwrapModeT. -
nswizzleRed
public static void nswizzleRed(long struct, int value) Unsafe version ofswizzleRed. -
nswizzleGreen
public static void nswizzleGreen(long struct, int value) Unsafe version ofswizzleGreen. -
nswizzleBlue
public static void nswizzleBlue(long struct, int value) Unsafe version ofswizzleBlue. -
nswizzleAlpha
public static void nswizzleAlpha(long struct, int value) Unsafe version ofswizzleAlpha. -
nmaxAnisotropy
public static void nmaxAnisotropy(long struct, float value) Unsafe version ofmaxAnisotropy. -
nborderColor
Unsafe version ofborderColor.
-