Package org.lwjgl.openxr
Class XrCompositionLayerSecureContentFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrCompositionLayerSecureContentFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrCompositionLayerSecureContentFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourcespecifies secure content mode for composition layers.Description
XrCompositionLayerSecureContentFBcontains additional flags to indicate a composition layer contains secure content and must not be written to external outputs.If both
COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FBandCOMPOSITION_LAYER_SECURE_CONTENT_REPLACE_LAYER_BIT_FBare set,COMPOSITION_LAYER_SECURE_CONTENT_EXCLUDE_LAYER_BIT_FBwill take precedence.To specify the additional flags, you must create a
XrCompositionLayerSecureContentFBstructure and pass it via theXrCompositionLayerBaseHeaderstructure’snextparameter.Valid Usage (Implicit)
- The
XR_FB_composition_layer_secure_contentextension must be enabled prior to usingXrCompositionLayerSecureContentFB typemust beTYPE_COMPOSITION_LAYER_SECURE_CONTENT_FBnextmust beNULLor a valid pointer to the next structure in a structure chainflagsmust be a valid combination ofXrCompositionLayerSecureContentFlagBitsFBvaluesflagsmust not be 0
See Also
Layout
struct XrCompositionLayerSecureContentFB { XrStructureTypetype(); void const *next(); XrCompositionLayerSecureContentFlagsFBflags(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrCompositionLayerSecureContentFB.BufferAn array ofXrCompositionLayerSecureContentFBstructs.
-
Constructor Summary
Constructors Constructor Description XrCompositionLayerSecureContentFB(java.nio.ByteBuffer container)Creates aXrCompositionLayerSecureContentFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrCompositionLayerSecureContentFBcalloc()Returns a newXrCompositionLayerSecureContentFBinstance allocated withmemCalloc.static XrCompositionLayerSecureContentFB.Buffercalloc(int capacity)Returns a newXrCompositionLayerSecureContentFB.Bufferinstance allocated withmemCalloc.static XrCompositionLayerSecureContentFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerSecureContentFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerSecureContentFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerSecureContentFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrCompositionLayerSecureContentFBcreate()Returns a newXrCompositionLayerSecureContentFBinstance allocated withBufferUtils.static XrCompositionLayerSecureContentFB.Buffercreate(int capacity)Returns a newXrCompositionLayerSecureContentFB.Bufferinstance allocated withBufferUtils.static XrCompositionLayerSecureContentFBcreate(long address)Returns a newXrCompositionLayerSecureContentFBinstance for the specified memory address.static XrCompositionLayerSecureContentFB.Buffercreate(long address, int capacity)Create aXrCompositionLayerSecureContentFB.Bufferinstance at the specified memory.static XrCompositionLayerSecureContentFBcreateSafe(long address)static XrCompositionLayerSecureContentFB.BuffercreateSafe(long address, int capacity)longflags()a bitmask ofXrCompositionLayerSecureContentFlagBitsFB.XrCompositionLayerSecureContentFBflags(long value)Sets the specified value to theflags()field.static XrCompositionLayerSecureContentFBmalloc()Returns a newXrCompositionLayerSecureContentFBinstance allocated withmemAlloc.static XrCompositionLayerSecureContentFB.Buffermalloc(int capacity)Returns a newXrCompositionLayerSecureContentFB.Bufferinstance allocated withmemAlloc.static XrCompositionLayerSecureContentFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerSecureContentFB.Bufferinstance allocated on the specifiedMemoryStack.static XrCompositionLayerSecureContentFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrCompositionLayerSecureContentFBinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrCompositionLayerSecureContentFBnext(long value)Sets the specified value to thenext()field.static longnflags(long struct)Unsafe version offlags().static voidnflags(long struct, long value)Unsafe version offlags.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrCompositionLayerSecureContentFBset(int type, long next, long flags)Initializes this struct with the specified values.XrCompositionLayerSecureContentFBset(XrCompositionLayerSecureContentFB src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrCompositionLayerSecureContentFBtype(int value)Sets the specified value to thetype()field.XrCompositionLayerSecureContentFBtype$Default()Sets theTYPE_COMPOSITION_LAYER_SECURE_CONTENT_FBvalue to thetype()field.
-
-
-
Constructor Detail
-
XrCompositionLayerSecureContentFB
public XrCompositionLayerSecureContentFB(java.nio.ByteBuffer container)
Creates aXrCompositionLayerSecureContentFBinstance 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.
-
flags
public long flags()
a bitmask ofXrCompositionLayerSecureContentFlagBitsFB.
-
type
public XrCompositionLayerSecureContentFB type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrCompositionLayerSecureContentFB type$Default()
Sets theTYPE_COMPOSITION_LAYER_SECURE_CONTENT_FBvalue to thetype()field.
-
next
public XrCompositionLayerSecureContentFB next(long value)
Sets the specified value to thenext()field.
-
flags
public XrCompositionLayerSecureContentFB flags(long value)
Sets the specified value to theflags()field.
-
set
public XrCompositionLayerSecureContentFB set(int type, long next, long flags)
Initializes this struct with the specified values.
-
set
public XrCompositionLayerSecureContentFB set(XrCompositionLayerSecureContentFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrCompositionLayerSecureContentFB malloc()
Returns a newXrCompositionLayerSecureContentFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrCompositionLayerSecureContentFB calloc()
Returns a newXrCompositionLayerSecureContentFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrCompositionLayerSecureContentFB create()
Returns a newXrCompositionLayerSecureContentFBinstance allocated withBufferUtils.
-
create
public static XrCompositionLayerSecureContentFB create(long address)
Returns a newXrCompositionLayerSecureContentFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrCompositionLayerSecureContentFB createSafe(long address)
-
malloc
public static XrCompositionLayerSecureContentFB.Buffer malloc(int capacity)
Returns a newXrCompositionLayerSecureContentFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrCompositionLayerSecureContentFB.Buffer calloc(int capacity)
Returns a newXrCompositionLayerSecureContentFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerSecureContentFB.Buffer create(int capacity)
Returns a newXrCompositionLayerSecureContentFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrCompositionLayerSecureContentFB.Buffer create(long address, int capacity)
Create aXrCompositionLayerSecureContentFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrCompositionLayerSecureContentFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrCompositionLayerSecureContentFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerSecureContentFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrCompositionLayerSecureContentFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerSecureContentFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrCompositionLayerSecureContentFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerSecureContentFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrCompositionLayerSecureContentFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrCompositionLayerSecureContentFB.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().
-
nflags
public static long nflags(long struct)
Unsafe version offlags().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nflags
public static void nflags(long struct, long value)Unsafe version offlags.
-
-