Class XrSwapchainStateSamplerOpenGLESFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSwapchainStateSamplerOpenGLESFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSwapchainStateSamplerOpenGLESFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceOpenGL ES-specific swapchain sampler state structure.Description
When
XrSwapchainStateSamplerOpenGLESFBis specified in the call toUpdateSwapchainFB, texture sampler state for all images in theXrSwapchainwill 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 theEGLContextbound duringXrSwapchaincreation or anEGLContextin 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
XrSwapchainStateSamplerOpenGLESFBis specified in the call toGetSwapchainStateFB, the sampler state will be populated with the current swapchain sampler state.To use
XrSwapchainStateSamplerOpenGLESFB,USE_GRAPHICS_API_OPENGL_ESmust be defined before includingopenxr_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,UpdateSwapchainFBLayout
struct XrSwapchainStateSamplerOpenGLESFB { XrStructureTypetype(); void *next(); EGLenumminFilter(); EGLenummagFilter(); EGLenumwrapModeS(); EGLenumwrapModeT(); EGLenumswizzleRed(); EGLenumswizzleGreen(); EGLenumswizzleBlue(); EGLenumswizzleAlpha(); floatmaxAnisotropy();XrColor4fborderColor(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSwapchainStateSamplerOpenGLESFB.BufferAn array ofXrSwapchainStateSamplerOpenGLESFBstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBORDERCOLOR
MAGFILTER
MAXANISOTROPY
MINFILTER
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSWIZZLEALPHA
SWIZZLEBLUE
SWIZZLEGREEN
SWIZZLERED
TYPE
WRAPMODES
WRAPMODETThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSwapchainStateSamplerOpenGLESFB(java.nio.ByteBuffer container)Creates aXrSwapchainStateSamplerOpenGLESFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description XrColor4fborderColor()an RGBA color to be used as border texels.XrSwapchainStateSamplerOpenGLESFBborderColor(java.util.function.Consumer<XrColor4f> consumer)Passes theborderColor()field to the specifiedConsumer.XrSwapchainStateSamplerOpenGLESFBborderColor(XrColor4f value)Copies the specifiedXrColor4fto theborderColor()field.static XrSwapchainStateSamplerOpenGLESFBcalloc()Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withmemCalloc.static XrSwapchainStateSamplerOpenGLESFB.Buffercalloc(int capacity)Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withmemCalloc.static XrSwapchainStateSamplerOpenGLESFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainStateSamplerOpenGLESFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSwapchainStateSamplerOpenGLESFBcreate()Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withBufferUtils.static XrSwapchainStateSamplerOpenGLESFB.Buffercreate(int capacity)Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withBufferUtils.static XrSwapchainStateSamplerOpenGLESFBcreate(long address)Returns a newXrSwapchainStateSamplerOpenGLESFBinstance for the specified memory address.static XrSwapchainStateSamplerOpenGLESFB.Buffercreate(long address, int capacity)Create aXrSwapchainStateSamplerOpenGLESFB.Bufferinstance at the specified memory.static XrSwapchainStateSamplerOpenGLESFBcreate(XrSwapchainStateBaseHeaderFB value)Downcasts the specifiedXrSwapchainStateBaseHeaderFBinstance toXrSwapchainStateSamplerOpenGLESFB.static XrSwapchainStateSamplerOpenGLESFB.Buffercreate(XrSwapchainStateBaseHeaderFB.Buffer value)Downcasts the specifiedXrSwapchainStateBaseHeaderFB.Bufferinstance toXrSwapchainStateSamplerOpenGLESFB.Buffer.static XrSwapchainStateSamplerOpenGLESFBcreateSafe(long address)static XrSwapchainStateSamplerOpenGLESFB.BuffercreateSafe(long address, int capacity)intmagFilter()a valid Android OpenGL ESEGLenum.XrSwapchainStateSamplerOpenGLESFBmagFilter(int value)Sets the specified value to themagFilter()field.static XrSwapchainStateSamplerOpenGLESFBmalloc()Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withmemAlloc.static XrSwapchainStateSamplerOpenGLESFB.Buffermalloc(int capacity)Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withmemAlloc.static XrSwapchainStateSamplerOpenGLESFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated on the specifiedMemoryStack.static XrSwapchainStateSamplerOpenGLESFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated on the specifiedMemoryStack.floatmaxAnisotropy()a valid float used to represent max anisotropy.XrSwapchainStateSamplerOpenGLESFBmaxAnisotropy(float value)Sets the specified value to themaxAnisotropy()field.intminFilter()a valid Android OpenGL ESEGLenum.XrSwapchainStateSamplerOpenGLESFBminFilter(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.XrSwapchainStateSamplerOpenGLESFBnext(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.XrSwapchainStateSamplerOpenGLESFBset(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.XrSwapchainStateSamplerOpenGLESFBset(XrSwapchainStateSamplerOpenGLESFB src)Copies the specified struct data to this struct.intsizeof()intswizzleAlpha()a valid Android OpenGL ESEGLenum.XrSwapchainStateSamplerOpenGLESFBswizzleAlpha(int value)Sets the specified value to theswizzleAlpha()field.intswizzleBlue()a valid Android OpenGL ESEGLenum.XrSwapchainStateSamplerOpenGLESFBswizzleBlue(int value)Sets the specified value to theswizzleBlue()field.intswizzleGreen()a valid Android OpenGL ESEGLenum.XrSwapchainStateSamplerOpenGLESFBswizzleGreen(int value)Sets the specified value to theswizzleGreen()field.intswizzleRed()a valid Android OpenGL ESEGLenum.XrSwapchainStateSamplerOpenGLESFBswizzleRed(int value)Sets the specified value to theswizzleRed()field.inttype()theXrStructureTypeof this structure.XrSwapchainStateSamplerOpenGLESFBtype(int value)Sets the specified value to thetype()field.XrSwapchainStateSamplerOpenGLESFBtype$Default()Sets theTYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FBvalue to thetype()field.intwrapModeS()a valid Android OpenGL ESEGLenum.XrSwapchainStateSamplerOpenGLESFBwrapModeS(int value)Sets the specified value to thewrapModeS()field.intwrapModeT()a valid Android OpenGL ESEGLenum.XrSwapchainStateSamplerOpenGLESFBwrapModeT(int value)Sets the specified value to thewrapModeT()field.
-
-
-
Constructor Detail
-
XrSwapchainStateSamplerOpenGLESFB
public XrSwapchainStateSamplerOpenGLESFB(java.nio.ByteBuffer container)
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 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.
-
minFilter, magFilter, wrapModeS, wrapModeT, swizzleRed, swizzleGreen, swizzleBlue, swizzleAlpha
public int minFilter() public int magFilter() public int wrapModeS() public int wrapModeT() public int swizzleRed() public int swizzleGreen() public int swizzleBlue() public int swizzleAlpha()
a valid Android OpenGL ESEGLenum.
-
maxAnisotropy
public float maxAnisotropy()
a valid float used to represent max anisotropy.
-
borderColor
public XrColor4f borderColor()
an RGBA color to be used as border texels.
-
type
public XrSwapchainStateSamplerOpenGLESFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSwapchainStateSamplerOpenGLESFB type$Default()
Sets theTYPE_SWAPCHAIN_STATE_SAMPLER_OPENGL_ES_FBvalue to thetype()field.
-
next
public XrSwapchainStateSamplerOpenGLESFB next(long value)
Sets the specified value to thenext()field.
-
minFilter
public XrSwapchainStateSamplerOpenGLESFB minFilter(int value)
Sets the specified value to theminFilter()field.
-
magFilter
public XrSwapchainStateSamplerOpenGLESFB magFilter(int value)
Sets the specified value to themagFilter()field.
-
wrapModeS
public XrSwapchainStateSamplerOpenGLESFB wrapModeS(int value)
Sets the specified value to thewrapModeS()field.
-
wrapModeT
public XrSwapchainStateSamplerOpenGLESFB wrapModeT(int value)
Sets the specified value to thewrapModeT()field.
-
swizzleRed
public XrSwapchainStateSamplerOpenGLESFB swizzleRed(int value)
Sets the specified value to theswizzleRed()field.
-
swizzleGreen
public XrSwapchainStateSamplerOpenGLESFB swizzleGreen(int value)
Sets the specified value to theswizzleGreen()field.
-
swizzleBlue
public XrSwapchainStateSamplerOpenGLESFB swizzleBlue(int value)
Sets the specified value to theswizzleBlue()field.
-
swizzleAlpha
public XrSwapchainStateSamplerOpenGLESFB swizzleAlpha(int value)
Sets the specified value to theswizzleAlpha()field.
-
maxAnisotropy
public XrSwapchainStateSamplerOpenGLESFB maxAnisotropy(float value)
Sets the specified value to themaxAnisotropy()field.
-
borderColor
public XrSwapchainStateSamplerOpenGLESFB borderColor(XrColor4f value)
Copies the specifiedXrColor4fto theborderColor()field.
-
borderColor
public XrSwapchainStateSamplerOpenGLESFB borderColor(java.util.function.Consumer<XrColor4f> consumer)
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
public XrSwapchainStateSamplerOpenGLESFB set(XrSwapchainStateSamplerOpenGLESFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSwapchainStateSamplerOpenGLESFB malloc()
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSwapchainStateSamplerOpenGLESFB calloc()
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSwapchainStateSamplerOpenGLESFB create()
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated withBufferUtils.
-
create
public static XrSwapchainStateSamplerOpenGLESFB create(long address)
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrSwapchainStateSamplerOpenGLESFB createSafe(long address)
-
create
public static XrSwapchainStateSamplerOpenGLESFB create(XrSwapchainStateBaseHeaderFB value)
Downcasts the specifiedXrSwapchainStateBaseHeaderFBinstance toXrSwapchainStateSamplerOpenGLESFB.
-
malloc
public static XrSwapchainStateSamplerOpenGLESFB.Buffer malloc(int capacity)
Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSwapchainStateSamplerOpenGLESFB.Buffer calloc(int capacity)
Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainStateSamplerOpenGLESFB.Buffer create(int capacity)
Returns a newXrSwapchainStateSamplerOpenGLESFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSwapchainStateSamplerOpenGLESFB.Buffer create(long address, int capacity)
Create aXrSwapchainStateSamplerOpenGLESFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSwapchainStateSamplerOpenGLESFB.Buffer createSafe(long address, int capacity)
-
create
public static XrSwapchainStateSamplerOpenGLESFB.Buffer create(XrSwapchainStateBaseHeaderFB.Buffer value)
Downcasts the specifiedXrSwapchainStateBaseHeaderFB.Bufferinstance toXrSwapchainStateSamplerOpenGLESFB.Buffer.
-
malloc
public static XrSwapchainStateSamplerOpenGLESFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSwapchainStateSamplerOpenGLESFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSwapchainStateSamplerOpenGLESFB calloc(org.lwjgl.system.MemoryStack stack)
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:
stack- the stack from which to allocatecapacity- the buffer capacity
-
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:
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().
-
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
public static XrColor4f nborderColor(long struct)
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
public static void nborderColor(long struct, XrColor4f value)Unsafe version ofborderColor.
-
-