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.
XR_FB_swapchain_update_state_opengl_es extension must be enabled prior to using XrSwapchainStateSamplerOpenGLESFBtype must be TYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FBnext must be NULL or a valid pointer to the next structure in a structure chainminFilter must be a valid EGLenum valuemagFilter must be a valid EGLenum valuewrapModeS must be a valid EGLenum valuewrapModeT must be a valid EGLenum valueswizzleRed must be a valid EGLenum valueswizzleGreen must be a valid EGLenum valueswizzleBlue must be a valid EGLenum valueswizzleAlpha must be a valid EGLenum valueXrColor4f, GetSwapchainStateFB, UpdateSwapchainFB
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;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | XrSwapchainStateSamplerOpenGLESFB.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | BORDERCOLOR
The struct member offsets. |
| public static final int | MAGFILTER
The struct member offsets. |
| public static final int | MAXANISOTROPY
The struct member offsets. |
| public static final int | MINFILTER
The struct member offsets. |
| public static final int | NEXT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SWIZZLEALPHA
The struct member offsets. |
| public static final int | SWIZZLEBLUE
The struct member offsets. |
| public static final int | SWIZZLEGREEN
The struct member offsets. |
| public static final int | SWIZZLERED
The struct member offsets. |
| public static final int | TYPE
The struct member offsets. |
| public static final int | WRAPMODES
The struct member offsets. |
| public static final int | WRAPMODET
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | XrSwapchainStateSamplerOpenGLESFB(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public XrColor4f | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public static XrSwapchainStateSamplerOpenGLESFB | |
| public static XrSwapchainStateSamplerOpenGLESFB. | calloc(int
the buffer capacity capacity)Returns a new |
| public static XrSwapchainStateSamplerOpenGLESFB | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrSwapchainStateSamplerOpenGLESFB. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected XrSwapchainStateSamplerOpenGLESFB | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static XrSwapchainStateSamplerOpenGLESFB | |
| public static XrSwapchainStateSamplerOpenGLESFB | create(long address)
Returns a new |
| public static XrSwapchainStateSamplerOpenGLESFB | create(XrSwapchainStateBaseHeaderFB value)
Downcasts the specified |
| public static XrSwapchainStateSamplerOpenGLESFB. | create(int
the buffer capacity capacity)Returns a new |
| public static XrSwapchainStateSamplerOpenGLESFB. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static XrSwapchainStateSamplerOpenGLESFB. | create(XrSwapchainStateBaseHeaderFB.
Downcasts the specified |
| public static XrSwapchainStateSamplerOpenGLESFB | |
| public static XrSwapchainStateSamplerOpenGLESFB. | |
| public int | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public static XrSwapchainStateSamplerOpenGLESFB | |
| public static XrSwapchainStateSamplerOpenGLESFB. | malloc(int
the buffer capacity capacity)Returns a new |
| public static XrSwapchainStateSamplerOpenGLESFB | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static XrSwapchainStateSamplerOpenGLESFB. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public float | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public int | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public static XrColor4f | |
| public static void | |
| public long | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public static int | |
| public static void | |
| public static float | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public XrSwapchainStateSamplerOpenGLESFB | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public int | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public int | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public int | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public int | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public int | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public int | |
| public XrSwapchainStateSamplerOpenGLESFB | |
| public int | |
| public XrSwapchainStateSamplerOpenGLESFB |