Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrCompositionLayerSpaceWarpInfoFB

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

Composition Layer Space Warp structure.
Description

The runtime must return error ERROR_VALIDATION_FAILURE if nearZ == farZ.

Valid Usage (Implicit)
See Also

XrCompositionLayerBaseHeader, XrCompositionLayerProjection, XrCompositionLayerProjectionView, XrFrameEndInfo, XrPosef, XrSwapchainSubImage, EndFrame

Layout


struct XrCompositionLayerSpaceWarpInfoFB {
    XrStructureType type;
    void const * next;
    XrCompositionLayerSpaceWarpInfoFlagsFB layerFlags;
    XrSwapchainSubImage motionVectorSubImage;
    XrPosef appSpaceDeltaPose;
    XrSwapchainSubImage depthSubImage;
    float minDepth;
    float maxDepth;
    float nearZ;
    float farZ;
}

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
APPSPACEDELTAPOSE

The struct member offsets.

public static final int
DEPTHSUBIMAGE

The struct member offsets.

public static final int
FARZ

The struct member offsets.

public static final int
LAYERFLAGS

The struct member offsets.

public static final int
MAXDEPTH

The struct member offsets.

public static final int
MINDEPTH

The struct member offsets.

public static final int
MOTIONVECTORSUBIMAGE

The struct member offsets.

public static final int
NEARZ

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
XrCompositionLayerSpaceWarpInfoFB(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public XrPosef
appSpaceDeltaPose()

the incremental application-applied transform, if any, since the previous frame that affects the view.

public XrCompositionLayerSpaceWarpInfoFB
appSpaceDeltaPose(XrPosef value)

Copies the specified XrPosef to the appSpaceDeltaPose field.

public XrCompositionLayerSpaceWarpInfoFB
appSpaceDeltaPose(Consumer<XrPosef> consumer)

Passes the appSpaceDeltaPose field to the specified Consumer.

public static XrCompositionLayerSpaceWarpInfoFB
calloc()

Returns a new XrCompositionLayerSpaceWarpInfoFB instance allocated with memCalloc.

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

Returns a new XrCompositionLayerSpaceWarpInfoFB.Buffer instance allocated with memCalloc.

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

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

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

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

protected XrCompositionLayerSpaceWarpInfoFB
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 XrCompositionLayerSpaceWarpInfoFB
create()

Returns a new XrCompositionLayerSpaceWarpInfoFB instance allocated with BufferUtils.

public static XrCompositionLayerSpaceWarpInfoFB
create(long address)

Returns a new XrCompositionLayerSpaceWarpInfoFB instance for the specified memory address.

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

Returns a new XrCompositionLayerSpaceWarpInfoFB.Buffer instance allocated with BufferUtils.

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

Create a XrCompositionLayerSpaceWarpInfoFB.Buffer instance at the specified memory.

public static XrCompositionLayerSpaceWarpInfoFB
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public XrSwapchainSubImage
depthSubImage()

identifies the depth image XrSwapchainSubImage to be associated with motionVectorSubImage.

public XrCompositionLayerSpaceWarpInfoFB
depthSubImage(XrSwapchainSubImage value)

Copies the specified XrSwapchainSubImage to the depthSubImage field.

public XrCompositionLayerSpaceWarpInfoFB
depthSubImage(Consumer<XrSwapchainSubImage> consumer)

Passes the depthSubImage field to the specified Consumer.

public float
farZ()

the positive distance in meters of the maxDepth value in the depth swapchain.

public XrCompositionLayerSpaceWarpInfoFB
farZ(float value)

Sets the specified value to the farZ field.

public long
layerFlags()

a bitmask of XrCompositionLayerSpaceWarpInfoFlagsFB.

public XrCompositionLayerSpaceWarpInfoFB
layerFlags(long value)

Sets the specified value to the layerFlags field.

public static XrCompositionLayerSpaceWarpInfoFB
malloc()

Returns a new XrCompositionLayerSpaceWarpInfoFB instance allocated with memAlloc.

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

Returns a new XrCompositionLayerSpaceWarpInfoFB.Buffer instance allocated with memAlloc.

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

Returns a new XrCompositionLayerSpaceWarpInfoFB instance allocated on the specified MemoryStack.

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

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

public float
maxDepth()

see minDepth

public XrCompositionLayerSpaceWarpInfoFB
maxDepth(float value)

Sets the specified value to the maxDepth field.

public float
minDepth()

minDepth and maxDepth are the range of depth values the depthSwapchain could have, in the range of [0.0,1.0].

public XrCompositionLayerSpaceWarpInfoFB
minDepth(float value)

Sets the specified value to the minDepth field.

public XrSwapchainSubImage
motionVectorSubImage()

identifies the motion vector image XrSwapchainSubImage to be associated with the submitted layer XrCompositionLayerProjection.

public XrCompositionLayerSpaceWarpInfoFB
public XrCompositionLayerSpaceWarpInfoFB
motionVectorSubImage(Consumer<XrSwapchainSubImage> consumer)

Passes the motionVectorSubImage field to the specified Consumer.

public static XrPosef
nappSpaceDeltaPose(long struct)

Unsafe version of appSpaceDeltaPose.

public static void
nappSpaceDeltaPose(long struct, XrPosef value)

Unsafe version of appSpaceDeltaPose.

public static XrSwapchainSubImage
ndepthSubImage(long struct)

Unsafe version of depthSubImage.

public static void
ndepthSubImage(long struct, XrSwapchainSubImage value)

Unsafe version of depthSubImage.

public float
nearZ()

the positive distance in meters of the minDepth value in the depth swapchain.

public XrCompositionLayerSpaceWarpInfoFB
nearZ(float value)

Sets the specified value to the nearZ field.

public long
next()

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

public XrCompositionLayerSpaceWarpInfoFB
next(long value)

Sets the specified value to the next field.

public static float
nfarZ(long struct)

Unsafe version of farZ.

public static void
nfarZ(long struct, float value)

Unsafe version of farZ.

public static long
nlayerFlags(long struct)

Unsafe version of layerFlags.

public static void
nlayerFlags(long struct, long value)

Unsafe version of layerFlags.

public static float
nmaxDepth(long struct)

Unsafe version of maxDepth.

public static void
nmaxDepth(long struct, float value)

Unsafe version of maxDepth.

public static float
nminDepth(long struct)

Unsafe version of minDepth.

public static void
nminDepth(long struct, float value)

Unsafe version of minDepth.

public static XrSwapchainSubImage
nmotionVectorSubImage(long struct)

Unsafe version of motionVectorSubImage.

public static void
nmotionVectorSubImage(long struct, XrSwapchainSubImage value)

Unsafe version of motionVectorSubImage.

public static float
nnearZ(long struct)

Unsafe version of nearZ.

public static void
nnearZ(long struct, float value)

Unsafe version of nearZ.

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 XrCompositionLayerSpaceWarpInfoFB
set(int type, long next, long layerFlags, XrSwapchainSubImage motionVectorSubImage, XrPosef appSpaceDeltaPose, XrSwapchainSubImage depthSubImage, float minDepth, float maxDepth, float nearZ, float farZ)

Initializes this struct with the specified values.

public XrCompositionLayerSpaceWarpInfoFB

Returns:

this struct
set
(XrCompositionLayerSpaceWarpInfoFB
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 XrCompositionLayerSpaceWarpInfoFB
type(int value)

Sets the specified value to the type field.

public XrCompositionLayerSpaceWarpInfoFB
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate