Package org.lwjgl.openxr
Class XrCompositionLayerDepthInfoKHR.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrCompositionLayerDepthInfoKHR,XrCompositionLayerDepthInfoKHR.Buffer>
-
- org.lwjgl.openxr.XrCompositionLayerDepthInfoKHR.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrCompositionLayerDepthInfoKHR>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrCompositionLayerDepthInfoKHR
public static class XrCompositionLayerDepthInfoKHR.Buffer extends org.lwjgl.system.StructBuffer<XrCompositionLayerDepthInfoKHR,XrCompositionLayerDepthInfoKHR.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrCompositionLayerDepthInfoKHRstructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrCompositionLayerDepthInfoKHR.Bufferinstance 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 byXrCompositionLayerDepthInfoKHR.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
type
public int type()
- Returns:
- the value of the
XrCompositionLayerDepthInfoKHR.type()field.
-
next
public long next()
- Returns:
- the value of the
XrCompositionLayerDepthInfoKHR.next()field.
-
subImage
public XrSwapchainSubImage subImage()
- Returns:
- a
XrSwapchainSubImageview of theXrCompositionLayerDepthInfoKHR.subImage()field.
-
minDepth
public float minDepth()
- Returns:
- the value of the
XrCompositionLayerDepthInfoKHR.minDepth()field.
-
maxDepth
public float maxDepth()
- Returns:
- the value of the
XrCompositionLayerDepthInfoKHR.maxDepth()field.
-
nearZ
public float nearZ()
- Returns:
- the value of the
XrCompositionLayerDepthInfoKHR.nearZ()field.
-
farZ
public float farZ()
- Returns:
- the value of the
XrCompositionLayerDepthInfoKHR.farZ()field.
-
type
public XrCompositionLayerDepthInfoKHR.Buffer type(int value)
Sets the specified value to theXrCompositionLayerDepthInfoKHR.type()field.
-
type$Default
public XrCompositionLayerDepthInfoKHR.Buffer type$Default()
Sets theTYPE_COMPOSITION_LAYER_DEPTH_INFO_KHRvalue to theXrCompositionLayerDepthInfoKHR.type()field.
-
next
public XrCompositionLayerDepthInfoKHR.Buffer next(long value)
Sets the specified value to theXrCompositionLayerDepthInfoKHR.next()field.
-
subImage
public XrCompositionLayerDepthInfoKHR.Buffer subImage(XrSwapchainSubImage value)
Copies the specifiedXrSwapchainSubImageto theXrCompositionLayerDepthInfoKHR.subImage()field.
-
subImage
public XrCompositionLayerDepthInfoKHR.Buffer subImage(java.util.function.Consumer<XrSwapchainSubImage> consumer)
Passes theXrCompositionLayerDepthInfoKHR.subImage()field to the specifiedConsumer.
-
minDepth
public XrCompositionLayerDepthInfoKHR.Buffer minDepth(float value)
Sets the specified value to theXrCompositionLayerDepthInfoKHR.minDepth()field.
-
maxDepth
public XrCompositionLayerDepthInfoKHR.Buffer maxDepth(float value)
Sets the specified value to theXrCompositionLayerDepthInfoKHR.maxDepth()field.
-
nearZ
public XrCompositionLayerDepthInfoKHR.Buffer nearZ(float value)
Sets the specified value to theXrCompositionLayerDepthInfoKHR.nearZ()field.
-
farZ
public XrCompositionLayerDepthInfoKHR.Buffer farZ(float value)
Sets the specified value to theXrCompositionLayerDepthInfoKHR.farZ()field.
-
-