Package org.lwjgl.openxr
Class XrCompositionLayerBaseHeader
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class XrCompositionLayerBaseHeader
extends Struct<XrCompositionLayerBaseHeader>
implements NativeResource
struct XrCompositionLayerBaseHeader {
XrStructureType type;
void const * next;
XrCompositionLayerFlags layerFlags;
XrSpace space;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionXrCompositionLayerBaseHeader
(ByteBuffer container) Creates aXrCompositionLayerBaseHeader
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrCompositionLayerBaseHeader
calloc()
Returns a newXrCompositionLayerBaseHeader
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newXrCompositionLayerBaseHeader.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newXrCompositionLayerBaseHeader.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrCompositionLayerBaseHeader
calloc
(MemoryStack stack) Returns a newXrCompositionLayerBaseHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static XrCompositionLayerBaseHeader
create()
Returns a newXrCompositionLayerBaseHeader
instance allocated withBufferUtils
.create
(int capacity) Returns a newXrCompositionLayerBaseHeader.Buffer
instance allocated withBufferUtils
.static XrCompositionLayerBaseHeader
create
(long address) Returns a newXrCompositionLayerBaseHeader
instance for the specified memory address.create
(long address, int capacity) Create aXrCompositionLayerBaseHeader.Buffer
instance at the specified memory.static XrCompositionLayerBaseHeader
create
(XrCompositionLayerCubeKHR value) Upcasts the specifiedXrCompositionLayerCubeKHR
instance toXrCompositionLayerBaseHeader
.Upcasts the specifiedXrCompositionLayerCubeKHR.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
.static XrCompositionLayerBaseHeader
Upcasts the specifiedXrCompositionLayerCylinderKHR
instance toXrCompositionLayerBaseHeader
.Upcasts the specifiedXrCompositionLayerCylinderKHR.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
.static XrCompositionLayerBaseHeader
Upcasts the specifiedXrCompositionLayerEquirect2KHR
instance toXrCompositionLayerBaseHeader
.Upcasts the specifiedXrCompositionLayerEquirect2KHR.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
.static XrCompositionLayerBaseHeader
Upcasts the specifiedXrCompositionLayerEquirectKHR
instance toXrCompositionLayerBaseHeader
.Upcasts the specifiedXrCompositionLayerEquirectKHR.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
.static XrCompositionLayerBaseHeader
Upcasts the specifiedXrCompositionLayerPassthroughFB
instance toXrCompositionLayerBaseHeader
.Upcasts the specifiedXrCompositionLayerPassthroughFB.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
.static XrCompositionLayerBaseHeader
Upcasts the specifiedXrCompositionLayerPassthroughHTC
instance toXrCompositionLayerBaseHeader
.Upcasts the specifiedXrCompositionLayerPassthroughHTC.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
.static XrCompositionLayerBaseHeader
Upcasts the specifiedXrCompositionLayerProjection
instance toXrCompositionLayerBaseHeader
.Upcasts the specifiedXrCompositionLayerProjection.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
.static XrCompositionLayerBaseHeader
create
(XrCompositionLayerQuad value) Upcasts the specifiedXrCompositionLayerQuad
instance toXrCompositionLayerBaseHeader
.Upcasts the specifiedXrCompositionLayerQuad.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
.static @Nullable XrCompositionLayerBaseHeader
createSafe
(long address) static @Nullable XrCompositionLayerBaseHeader.Buffer
createSafe
(long address, int capacity) long
layerFlags
(long value) Sets the specified value to thelayerFlags
field.static XrCompositionLayerBaseHeader
malloc()
Returns a newXrCompositionLayerBaseHeader
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newXrCompositionLayerBaseHeader.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newXrCompositionLayerBaseHeader.Buffer
instance allocated on the specifiedMemoryStack
.static XrCompositionLayerBaseHeader
malloc
(MemoryStack stack) Returns a newXrCompositionLayerBaseHeader
instance allocated on the specifiedMemoryStack
.long
next()
next
(long value) Sets the specified value to thenext
field.Prepends the specifiedXrCompositionLayerAlphaBlendFB
value to thenext
chain.Prepends the specifiedXrCompositionLayerColorScaleBiasKHR
value to thenext
chain.Prepends the specifiedXrCompositionLayerDepthTestFB
value to thenext
chain.Prepends the specifiedXrCompositionLayerImageLayoutFB
value to thenext
chain.Prepends the specifiedXrCompositionLayerSecureContentFB
value to thenext
chain.next
(XrCompositionLayerSettingsFB value) Prepends the specifiedXrCompositionLayerSettingsFB
value to thenext
chain.static long
nlayerFlags
(long struct) Unsafe version oflayerFlags()
.static void
nlayerFlags
(long struct, long value) Unsafe version oflayerFlags
.static long
nnext
(long struct) Unsafe version ofnext()
.static void
nnext
(long struct, long value) Unsafe version ofnext
.static long
nspace
(long struct) Unsafe version ofspace()
.static void
Unsafe version ofspace
.static int
ntype
(long struct) Unsafe version oftype()
.static void
ntype
(long struct, int value) Unsafe version oftype
.Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.long
space()
Sets the specified value to thespace
field.int
type()
type
(int value) Sets the specified value to thetype
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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. -
LAYERFLAGS
public static final int LAYERFLAGSThe struct member offsets. -
SPACE
public static final int SPACEThe struct member offsets.
-
-
Constructor Details
-
XrCompositionLayerBaseHeader
Creates aXrCompositionLayerBaseHeader
instance at the current position of the specifiedByteBuffer
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
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<XrCompositionLayerBaseHeader>
-
type
public int type()- Returns:
- the value of the
type
field.
-
next
public long next()- Returns:
- the value of the
next
field.
-
layerFlags
public long layerFlags()- Returns:
- the value of the
layerFlags
field.
-
space
public long space()- Returns:
- the value of the
space
field.
-
type
Sets the specified value to thetype
field. -
next
Sets the specified value to thenext
field. -
next
Prepends the specifiedXrCompositionLayerAlphaBlendFB
value to thenext
chain. -
next
Prepends the specifiedXrCompositionLayerColorScaleBiasKHR
value to thenext
chain. -
next
Prepends the specifiedXrCompositionLayerDepthTestFB
value to thenext
chain. -
next
Prepends the specifiedXrCompositionLayerImageLayoutFB
value to thenext
chain. -
next
Prepends the specifiedXrCompositionLayerSecureContentFB
value to thenext
chain. -
next
Prepends the specifiedXrCompositionLayerSettingsFB
value to thenext
chain. -
layerFlags
Sets the specified value to thelayerFlags
field. -
space
Sets the specified value to thespace
field. -
set
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 newXrCompositionLayerBaseHeader
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newXrCompositionLayerBaseHeader
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newXrCompositionLayerBaseHeader
instance allocated withBufferUtils
. -
create
Returns a newXrCompositionLayerBaseHeader
instance for the specified memory address. -
createSafe
-
create
Upcasts the specifiedXrCompositionLayerProjection
instance toXrCompositionLayerBaseHeader
. -
create
Upcasts the specifiedXrCompositionLayerQuad
instance toXrCompositionLayerBaseHeader
. -
create
Upcasts the specifiedXrCompositionLayerCubeKHR
instance toXrCompositionLayerBaseHeader
. -
create
Upcasts the specifiedXrCompositionLayerCylinderKHR
instance toXrCompositionLayerBaseHeader
. -
create
Upcasts the specifiedXrCompositionLayerEquirectKHR
instance toXrCompositionLayerBaseHeader
. -
create
Upcasts the specifiedXrCompositionLayerEquirect2KHR
instance toXrCompositionLayerBaseHeader
. -
create
Upcasts the specifiedXrCompositionLayerPassthroughFB
instance toXrCompositionLayerBaseHeader
. -
create
Upcasts the specifiedXrCompositionLayerPassthroughHTC
instance toXrCompositionLayerBaseHeader
. -
malloc
Returns a newXrCompositionLayerBaseHeader.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newXrCompositionLayerBaseHeader.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newXrCompositionLayerBaseHeader.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aXrCompositionLayerBaseHeader.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
create
Upcasts the specifiedXrCompositionLayerProjection.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
. -
create
Upcasts the specifiedXrCompositionLayerQuad.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
. -
create
Upcasts the specifiedXrCompositionLayerCubeKHR.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
. -
create
public static XrCompositionLayerBaseHeader.Buffer create(XrCompositionLayerCylinderKHR.Buffer value) Upcasts the specifiedXrCompositionLayerCylinderKHR.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
. -
create
public static XrCompositionLayerBaseHeader.Buffer create(XrCompositionLayerEquirectKHR.Buffer value) Upcasts the specifiedXrCompositionLayerEquirectKHR.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
. -
create
public static XrCompositionLayerBaseHeader.Buffer create(XrCompositionLayerEquirect2KHR.Buffer value) Upcasts the specifiedXrCompositionLayerEquirect2KHR.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
. -
create
public static XrCompositionLayerBaseHeader.Buffer create(XrCompositionLayerPassthroughFB.Buffer value) Upcasts the specifiedXrCompositionLayerPassthroughFB.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
. -
create
public static XrCompositionLayerBaseHeader.Buffer create(XrCompositionLayerPassthroughHTC.Buffer value) Upcasts the specifiedXrCompositionLayerPassthroughHTC.Buffer
instance toXrCompositionLayerBaseHeader.Buffer
. -
malloc
Returns a newXrCompositionLayerBaseHeader
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newXrCompositionLayerBaseHeader
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newXrCompositionLayerBaseHeader.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newXrCompositionLayerBaseHeader.Buffer
instance allocated on the specifiedMemoryStack
and 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()
. -
nlayerFlags
public static long nlayerFlags(long struct) Unsafe version oflayerFlags()
. -
nspace
public static long nspace(long struct) Unsafe version ofspace()
. -
ntype
public static void ntype(long struct, int value) Unsafe version oftype
. -
nnext
public static void nnext(long struct, long value) Unsafe version ofnext
. -
nlayerFlags
public static void nlayerFlags(long struct, long value) Unsafe version oflayerFlags
. -
nspace
Unsafe version ofspace
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-