Class XrSwapchainStateSamplerOpenGLESFB

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrSwapchainStateSamplerOpenGLESFB>
org.lwjgl.openxr.XrSwapchainStateSamplerOpenGLESFB
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrSwapchainStateSamplerOpenGLESFB extends org.lwjgl.system.Struct<XrSwapchainStateSamplerOpenGLESFB> implements org.lwjgl.system.NativeResource
OpenGL ES-specific swapchain sampler state structure.
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)
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();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • MINFILTER

      public static final int MINFILTER
      The struct member offsets.
    • MAGFILTER

      public static final int MAGFILTER
      The struct member offsets.
    • WRAPMODES

      public static final int WRAPMODES
      The struct member offsets.
    • WRAPMODET

      public static final int WRAPMODET
      The struct member offsets.
    • SWIZZLERED

      public static final int SWIZZLERED
      The struct member offsets.
    • SWIZZLEGREEN

      public static final int SWIZZLEGREEN
      The struct member offsets.
    • SWIZZLEBLUE

      public static final int SWIZZLEBLUE
      The struct member offsets.
    • SWIZZLEALPHA

      public static final int SWIZZLEALPHA
      The struct member offsets.
    • MAXANISOTROPY

      public static final int MAXANISOTROPY
      The struct member offsets.
    • BORDERCOLOR

      public static final int BORDERCOLOR
      The struct member offsets.
  • Constructor Details

    • XrSwapchainStateSamplerOpenGLESFB

      public XrSwapchainStateSamplerOpenGLESFB(ByteBuffer container)
      Creates a XrSwapchainStateSamplerOpenGLESFB instance at the current position of the specified ByteBuffer container. 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