Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrCompositionLayerDepthTestVARJO

extends Struct<XrCompositionLayerDepthTestVARJO>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

The structure to be passed when submitting layers to enable depth testing.
Valid Usage (Implicit)
See Also

EndFrame

Layout


struct XrCompositionLayerDepthTestVARJO {
    XrStructureType type;
    void const * next;
    float depthTestRangeNearZ;
    float depthTestRangeFarZ;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
DEPTHTESTRANGEFARZ

The struct member offsets.

public static final int
DEPTHTESTRANGENEARZ

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
TYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
public
XrCompositionLayerDepthTestVARJO(ByteBuffer container)

Creates a XrCompositionLayerDepthTestVARJO instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static XrCompositionLayerDepthTestVARJO
calloc()

Returns a new XrCompositionLayerDepthTestVARJO instance allocated with memCalloc.

public static XrCompositionLayerDepthTestVARJO.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new XrCompositionLayerDepthTestVARJO.Buffer instance allocated with memCalloc.

public static XrCompositionLayerDepthTestVARJO
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrCompositionLayerDepthTestVARJO instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XrCompositionLayerDepthTestVARJO.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrCompositionLayerDepthTestVARJO.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected XrCompositionLayerDepthTestVARJO
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static XrCompositionLayerDepthTestVARJO
create()

Returns a new XrCompositionLayerDepthTestVARJO instance allocated with BufferUtils.

public static XrCompositionLayerDepthTestVARJO
create(long address)

Returns a new XrCompositionLayerDepthTestVARJO instance for the specified memory address.

public static XrCompositionLayerDepthTestVARJO.Buffer
create(int
the buffer capacity
capacity
)

Returns a new XrCompositionLayerDepthTestVARJO.Buffer instance allocated with BufferUtils.

public static XrCompositionLayerDepthTestVARJO.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a XrCompositionLayerDepthTestVARJO.Buffer instance at the specified memory.

public static XrCompositionLayerDepthTestVARJO
createSafe(long address)

Like create, but returns null if address is NULL.

public static XrCompositionLayerDepthTestVARJO.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public float
depthTestRangeFarZ()

a positive distance in meters that specifies the upper bound of the range where depth testing should be performed.

public XrCompositionLayerDepthTestVARJO
depthTestRangeFarZ(float value)

Sets the specified value to the depthTestRangeFarZ field.

public float
depthTestRangeNearZ()

in a non-negative distance in meters that specifies the lower bound of the range where depth testing should be performed.

public XrCompositionLayerDepthTestVARJO
depthTestRangeNearZ(float value)

Sets the specified value to the depthTestRangeNearZ field.

public static XrCompositionLayerDepthTestVARJO
malloc()

Returns a new XrCompositionLayerDepthTestVARJO instance allocated with memAlloc.

public static XrCompositionLayerDepthTestVARJO.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new XrCompositionLayerDepthTestVARJO.Buffer instance allocated with memAlloc.

public static XrCompositionLayerDepthTestVARJO
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrCompositionLayerDepthTestVARJO instance allocated on the specified MemoryStack.

public static XrCompositionLayerDepthTestVARJO.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrCompositionLayerDepthTestVARJO.Buffer instance allocated on the specified MemoryStack.

public static float
ndepthTestRangeFarZ(long struct)

Unsafe version of depthTestRangeFarZ.

public static void
ndepthTestRangeFarZ(long struct, float value)

Unsafe version of depthTestRangeFarZ.

public static float
ndepthTestRangeNearZ(long struct)

Unsafe version of depthTestRangeNearZ.

public static void
ndepthTestRangeNearZ(long struct, float value)

Unsafe version of depthTestRangeNearZ.

public long
next()

NULL or a pointer to the next structure in a structure chain.

public XrCompositionLayerDepthTestVARJO
next(long value)

Sets the specified value to the next field.

public static long
nnext(long struct)

Unsafe version of next.

public static void
nnext(long struct, long value)

Unsafe version of next.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public XrCompositionLayerDepthTestVARJO
set(int type, long next, float depthTestRangeNearZ, float depthTestRangeFarZ)

Initializes this struct with the specified values.

public XrCompositionLayerDepthTestVARJO

Returns:

this struct
set
(XrCompositionLayerDepthTestVARJO
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
type()

the XrStructureType of this structure.

public XrCompositionLayerDepthTestVARJO
type(int value)

Sets the specified value to the type field.

public XrCompositionLayerDepthTestVARJO
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

DEPTHTESTRANGEFARZback to summary
public static final int DEPTHTESTRANGEFARZ

The struct member offsets.

DEPTHTESTRANGENEARZback to summary
public static final int DEPTHTESTRANGENEARZ

The struct member offsets.

NEXTback to summary
public static final int NEXT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TYPEback to summary
public static final int TYPE

The struct member offsets.

Constructor Detail

XrCompositionLayerDepthTestVARJOback to summary
protected XrCompositionLayerDepthTestVARJO(long address, ByteBuffer container)
XrCompositionLayerDepthTestVARJOback to summary
public XrCompositionLayerDepthTestVARJO(ByteBuffer container)

Creates a XrCompositionLayerDepthTestVARJO 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 Detail

callocback to summary
public static XrCompositionLayerDepthTestVARJO calloc()

Returns a new XrCompositionLayerDepthTestVARJO instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static XrCompositionLayerDepthTestVARJO.Buffer calloc(int capacity)

Returns a new XrCompositionLayerDepthTestVARJO.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static XrCompositionLayerDepthTestVARJO calloc(MemoryStack stack)

Returns a new XrCompositionLayerDepthTestVARJO instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static XrCompositionLayerDepthTestVARJO.Buffer calloc(int capacity, MemoryStack stack)

Returns a new XrCompositionLayerDepthTestVARJO.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

createback to summary
protected XrCompositionLayerDepthTestVARJO create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static XrCompositionLayerDepthTestVARJO create()

Returns a new XrCompositionLayerDepthTestVARJO instance allocated with BufferUtils.

createback to summary
public static XrCompositionLayerDepthTestVARJO create(long address)

Returns a new XrCompositionLayerDepthTestVARJO instance for the specified memory address.

createback to summary
public static XrCompositionLayerDepthTestVARJO.Buffer create(int capacity)

Returns a new XrCompositionLayerDepthTestVARJO.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static XrCompositionLayerDepthTestVARJO.Buffer create(long address, int capacity)

Create a XrCompositionLayerDepthTestVARJO.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static XrCompositionLayerDepthTestVARJO createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static XrCompositionLayerDepthTestVARJO.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
depthTestRangeFarZback to summary
public float depthTestRangeFarZ()

a positive distance in meters that specifies the upper bound of the range where depth testing should be performed. Must be greater than depthTestRangeNearZ. Value of floating point positive infinity means that there is no upper bound.

depthTestRangeFarZback to summary
public XrCompositionLayerDepthTestVARJO depthTestRangeFarZ(float value)

Sets the specified value to the depthTestRangeFarZ field.

depthTestRangeNearZback to summary
public float depthTestRangeNearZ()

in a non-negative distance in meters that specifies the lower bound of the range where depth testing should be performed. Must be less than depthTestRangeFarZ. Value of zero means that there is no lower bound.

depthTestRangeNearZback to summary
public XrCompositionLayerDepthTestVARJO depthTestRangeNearZ(float value)

Sets the specified value to the depthTestRangeNearZ field.

mallocback to summary
public static XrCompositionLayerDepthTestVARJO malloc()

Returns a new XrCompositionLayerDepthTestVARJO instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static XrCompositionLayerDepthTestVARJO.Buffer malloc(int capacity)

Returns a new XrCompositionLayerDepthTestVARJO.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static XrCompositionLayerDepthTestVARJO malloc(MemoryStack stack)

Returns a new XrCompositionLayerDepthTestVARJO instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static XrCompositionLayerDepthTestVARJO.Buffer malloc(int capacity, MemoryStack stack)

Returns a new XrCompositionLayerDepthTestVARJO.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

ndepthTestRangeFarZback to summary
public static float ndepthTestRangeFarZ(long struct)

Unsafe version of depthTestRangeFarZ.

ndepthTestRangeFarZback to summary
public static void ndepthTestRangeFarZ(long struct, float value)

Unsafe version of depthTestRangeFarZ.

ndepthTestRangeNearZback to summary
public static float ndepthTestRangeNearZ(long struct)

Unsafe version of depthTestRangeNearZ.

ndepthTestRangeNearZback to summary
public static void ndepthTestRangeNearZ(long struct, float value)

Unsafe version of depthTestRangeNearZ.

nextback to summary
public long next()

NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.

Annotations
@NativeType:void const *
nextback to summary
public XrCompositionLayerDepthTestVARJO next(long value)

Sets the specified value to the next field.

nnextback to summary
public static long nnext(long struct)

Unsafe version of next.

nnextback to summary
public static void nnext(long struct, long value)

Unsafe version of next.

ntypeback to summary
public static int ntype(long struct)

Unsafe version of type.

ntypeback to summary
public static void ntype(long struct, int value)

Unsafe version of type.

setback to summary
public XrCompositionLayerDepthTestVARJO set(int type, long next, float depthTestRangeNearZ, float depthTestRangeFarZ)

Initializes this struct with the specified values.

setback to summary
public XrCompositionLayerDepthTestVARJO set(XrCompositionLayerDepthTestVARJO src)

Copies the specified struct data to this struct.

Parameters
src:XrCompositionLayerDepthTestVARJO

the source struct

Returns:XrCompositionLayerDepthTestVARJO

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
typeback to summary
public int type()

the XrStructureType of this structure.

Annotations
@NativeType:XrStructureType
typeback to summary
public XrCompositionLayerDepthTestVARJO type(int value)

Sets the specified value to the type field.

type$Defaultback to summary
public XrCompositionLayerDepthTestVARJO type$Default()

Sets the TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO value to the type field.

org.lwjgl.openxr back to summary

public Class XrCompositionLayerDepthTestVARJO.Buffer

extends StructBuffer<XrCompositionLayerDepthTestVARJO, XrCompositionLayerDepthTestVARJO.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of XrCompositionLayerDepthTestVARJO structs.

Field Summary

Modifier and TypeField and Description
private static final XrCompositionLayerDepthTestVARJO

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new XrCompositionLayerDepthTestVARJO.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public float
public XrCompositionLayerDepthTestVARJO.Buffer
depthTestRangeFarZ(float value)

Sets the specified value to the XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ field.

public float
public XrCompositionLayerDepthTestVARJO.Buffer
depthTestRangeNearZ(float value)

Sets the specified value to the XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ field.

protected XrCompositionLayerDepthTestVARJO
public long

Returns:

the value of the XrCompositionLayerDepthTestVARJO#next field.
next
()

public XrCompositionLayerDepthTestVARJO.Buffer
next(long value)

Sets the specified value to the XrCompositionLayerDepthTestVARJO#next field.

protected XrCompositionLayerDepthTestVARJO.Buffer
public int

Returns:

the value of the XrCompositionLayerDepthTestVARJO#type field.
type
()

public XrCompositionLayerDepthTestVARJO.Buffer
type(int value)

Sets the specified value to the XrCompositionLayerDepthTestVARJO#type field.

public XrCompositionLayerDepthTestVARJO.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final XrCompositionLayerDepthTestVARJO ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new XrCompositionLayerDepthTestVARJO.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XrCompositionLayerDepthTestVARJO#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

depthTestRangeFarZback to summary
public float depthTestRangeFarZ()
Returns:float

the value of the XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ field.

depthTestRangeFarZback to summary
public XrCompositionLayerDepthTestVARJO.Buffer depthTestRangeFarZ(float value)

Sets the specified value to the XrCompositionLayerDepthTestVARJO#depthTestRangeFarZ field.

depthTestRangeNearZback to summary
public float depthTestRangeNearZ()
Returns:float

the value of the XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ field.

depthTestRangeNearZback to summary
public XrCompositionLayerDepthTestVARJO.Buffer depthTestRangeNearZ(float value)

Sets the specified value to the XrCompositionLayerDepthTestVARJO#depthTestRangeNearZ field.

getElementFactoryback to summary
protected XrCompositionLayerDepthTestVARJO getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
nextback to summary
public long next()
Returns:long

the value of the XrCompositionLayerDepthTestVARJO#next field.

Annotations
@NativeType:void const *
nextback to summary
public XrCompositionLayerDepthTestVARJO.Buffer next(long value)

Sets the specified value to the XrCompositionLayerDepthTestVARJO#next field.

selfback to summary
protected XrCompositionLayerDepthTestVARJO.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
typeback to summary
public int type()
Returns:int

the value of the XrCompositionLayerDepthTestVARJO#type field.

Annotations
@NativeType:XrStructureType
typeback to summary
public XrCompositionLayerDepthTestVARJO.Buffer type(int value)

Sets the specified value to the XrCompositionLayerDepthTestVARJO#type field.

type$Defaultback to summary
public XrCompositionLayerDepthTestVARJO.Buffer type$Default()

Sets the TYPE_COMPOSITION_LAYER_DEPTH_TEST_VARJO value to the XrCompositionLayerDepthTestVARJO#type field.