Package org.lwjgl.openxr
Class XrSwapchainCreateInfo.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrSwapchainCreateInfo,XrSwapchainCreateInfo.Buffer>
-
- org.lwjgl.openxr.XrSwapchainCreateInfo.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrSwapchainCreateInfo>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrSwapchainCreateInfo
public static class XrSwapchainCreateInfo.Buffer extends org.lwjgl.system.StructBuffer<XrSwapchainCreateInfo,XrSwapchainCreateInfo.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrSwapchainCreateInfostructs.
-
-
Method Summary
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrSwapchainCreateInfo.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 byXrSwapchainCreateInfo.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
XrSwapchainCreateInfo.type()field.
-
next
public long next()
- Returns:
- the value of the
XrSwapchainCreateInfo.next()field.
-
createFlags
public long createFlags()
- Returns:
- the value of the
XrSwapchainCreateInfo.createFlags()field.
-
usageFlags
public long usageFlags()
- Returns:
- the value of the
XrSwapchainCreateInfo.usageFlags()field.
-
format
public long format()
- Returns:
- the value of the
XrSwapchainCreateInfo.format()field.
-
sampleCount
public int sampleCount()
- Returns:
- the value of the
XrSwapchainCreateInfo.sampleCount()field.
-
width
public int width()
- Returns:
- the value of the
XrSwapchainCreateInfo.width()field.
-
height
public int height()
- Returns:
- the value of the
XrSwapchainCreateInfo.height()field.
-
faceCount
public int faceCount()
- Returns:
- the value of the
XrSwapchainCreateInfo.faceCount()field.
-
arraySize
public int arraySize()
- Returns:
- the value of the
XrSwapchainCreateInfo.arraySize()field.
-
mipCount
public int mipCount()
- Returns:
- the value of the
XrSwapchainCreateInfo.mipCount()field.
-
type
public XrSwapchainCreateInfo.Buffer type(int value)
Sets the specified value to theXrSwapchainCreateInfo.type()field.
-
type$Default
public XrSwapchainCreateInfo.Buffer type$Default()
Sets theTYPE_SWAPCHAIN_CREATE_INFOvalue to theXrSwapchainCreateInfo.type()field.
-
next
public XrSwapchainCreateInfo.Buffer next(long value)
Sets the specified value to theXrSwapchainCreateInfo.next()field.
-
next
public XrSwapchainCreateInfo.Buffer next(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT value)
Prepends the specifiedXrSecondaryViewConfigurationSwapchainCreateInfoMSFTvalue to thenextchain.
-
next
public XrSwapchainCreateInfo.Buffer next(XrSwapchainCreateInfoFoveationFB value)
Prepends the specifiedXrSwapchainCreateInfoFoveationFBvalue to thenextchain.
-
createFlags
public XrSwapchainCreateInfo.Buffer createFlags(long value)
Sets the specified value to theXrSwapchainCreateInfo.createFlags()field.
-
usageFlags
public XrSwapchainCreateInfo.Buffer usageFlags(long value)
Sets the specified value to theXrSwapchainCreateInfo.usageFlags()field.
-
format
public XrSwapchainCreateInfo.Buffer format(long value)
Sets the specified value to theXrSwapchainCreateInfo.format()field.
-
sampleCount
public XrSwapchainCreateInfo.Buffer sampleCount(int value)
Sets the specified value to theXrSwapchainCreateInfo.sampleCount()field.
-
width
public XrSwapchainCreateInfo.Buffer width(int value)
Sets the specified value to theXrSwapchainCreateInfo.width()field.
-
height
public XrSwapchainCreateInfo.Buffer height(int value)
Sets the specified value to theXrSwapchainCreateInfo.height()field.
-
faceCount
public XrSwapchainCreateInfo.Buffer faceCount(int value)
Sets the specified value to theXrSwapchainCreateInfo.faceCount()field.
-
arraySize
public XrSwapchainCreateInfo.Buffer arraySize(int value)
Sets the specified value to theXrSwapchainCreateInfo.arraySize()field.
-
mipCount
public XrSwapchainCreateInfo.Buffer mipCount(int value)
Sets the specified value to theXrSwapchainCreateInfo.mipCount()field.
-
-