Package org.lwjgl.openxr
Class XrViewConfigurationView
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrViewConfigurationView
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrViewConfigurationView extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceIndividual view configuration.Description
See
XrSwapchainSubImagefor more information aboutimageRectvalues, andXrSwapchainCreateInfofor more information about creating swapchains appropriately sized to support thoseimageRectvalues.The array of
XrViewConfigurationViewreturned by the runtime must adhere to the rules defined inXrViewConfigurationType, such as the count and association to the left and right eyes.Valid Usage (Implicit)
typemust beTYPE_VIEW_CONFIGURATION_VIEWnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrFoveatedViewConfigurationViewVARJO,XrViewConfigurationDepthRangeEXT,XrViewConfigurationViewFovEPIC
See Also
XrViewConfigurationProperties,EnumerateViewConfigurationViewsLayout
struct XrViewConfigurationView { XrStructureTypetype(); void *next(); uint32_trecommendedImageRectWidth(); uint32_tmaxImageRectWidth(); uint32_trecommendedImageRectHeight(); uint32_tmaxImageRectHeight(); uint32_trecommendedSwapchainSampleCount(); uint32_tmaxSwapchainSampleCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrViewConfigurationView.BufferAn array ofXrViewConfigurationViewstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAXIMAGERECTHEIGHT
MAXIMAGERECTWIDTH
MAXSWAPCHAINSAMPLECOUNT
NEXT
RECOMMENDEDIMAGERECTHEIGHT
RECOMMENDEDIMAGERECTWIDTH
RECOMMENDEDSWAPCHAINSAMPLECOUNTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrViewConfigurationView(java.nio.ByteBuffer container)Creates aXrViewConfigurationViewinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrViewConfigurationViewcalloc()Returns a newXrViewConfigurationViewinstance allocated withmemCalloc.static XrViewConfigurationView.Buffercalloc(int capacity)Returns a newXrViewConfigurationView.Bufferinstance allocated withmemCalloc.static XrViewConfigurationView.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationView.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViewConfigurationViewcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationViewinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrViewConfigurationViewcreate()Returns a newXrViewConfigurationViewinstance allocated withBufferUtils.static XrViewConfigurationView.Buffercreate(int capacity)Returns a newXrViewConfigurationView.Bufferinstance allocated withBufferUtils.static XrViewConfigurationViewcreate(long address)Returns a newXrViewConfigurationViewinstance for the specified memory address.static XrViewConfigurationView.Buffercreate(long address, int capacity)Create aXrViewConfigurationView.Bufferinstance at the specified memory.static XrViewConfigurationViewcreateSafe(long address)static XrViewConfigurationView.BuffercreateSafe(long address, int capacity)static XrViewConfigurationViewmalloc()Returns a newXrViewConfigurationViewinstance allocated withmemAlloc.static XrViewConfigurationView.Buffermalloc(int capacity)Returns a newXrViewConfigurationView.Bufferinstance allocated withmemAlloc.static XrViewConfigurationView.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationView.Bufferinstance allocated on the specifiedMemoryStack.static XrViewConfigurationViewmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrViewConfigurationViewinstance allocated on the specifiedMemoryStack.intmaxImageRectHeight()the maximum height ofimageRectsupported when rendering this view into a swapchain.XrViewConfigurationViewmaxImageRectHeight(int value)Sets the specified value to themaxImageRectHeight()field.intmaxImageRectWidth()the maximum width ofimageRectsupported when rendering this view into a swapchain.XrViewConfigurationViewmaxImageRectWidth(int value)Sets the specified value to themaxImageRectWidth()field.intmaxSwapchainSampleCount()the maximum number of sub-data element samples supported for swapchain images that will be rendered into for this view.XrViewConfigurationViewmaxSwapchainSampleCount(int value)Sets the specified value to themaxSwapchainSampleCount()field.longnext()NULLor a pointer to the next structure in a structure chain.XrViewConfigurationViewnext(long value)Sets the specified value to thenext()field.XrViewConfigurationViewnext(XrFoveatedViewConfigurationViewVARJO value)Prepends the specifiedXrFoveatedViewConfigurationViewVARJOvalue to thenextchain.XrViewConfigurationViewnext(XrViewConfigurationDepthRangeEXT value)Prepends the specifiedXrViewConfigurationDepthRangeEXTvalue to thenextchain.XrViewConfigurationViewnext(XrViewConfigurationViewFovEPIC value)Prepends the specifiedXrViewConfigurationViewFovEPICvalue to thenextchain.static intnmaxImageRectHeight(long struct)Unsafe version ofmaxImageRectHeight().static voidnmaxImageRectHeight(long struct, int value)Unsafe version ofmaxImageRectHeight.static intnmaxImageRectWidth(long struct)Unsafe version ofmaxImageRectWidth().static voidnmaxImageRectWidth(long struct, int value)Unsafe version ofmaxImageRectWidth.static intnmaxSwapchainSampleCount(long struct)Unsafe version ofmaxSwapchainSampleCount().static voidnmaxSwapchainSampleCount(long struct, int value)Unsafe version ofmaxSwapchainSampleCount.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intnrecommendedImageRectHeight(long struct)Unsafe version ofrecommendedImageRectHeight().static voidnrecommendedImageRectHeight(long struct, int value)Unsafe version ofrecommendedImageRectHeight.static intnrecommendedImageRectWidth(long struct)Unsafe version ofrecommendedImageRectWidth().static voidnrecommendedImageRectWidth(long struct, int value)Unsafe version ofrecommendedImageRectWidth.static intnrecommendedSwapchainSampleCount(long struct)Unsafe version ofrecommendedSwapchainSampleCount().static voidnrecommendedSwapchainSampleCount(long struct, int value)Unsafe version ofrecommendedSwapchainSampleCount.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.intrecommendedImageRectHeight()the optimal height ofimageRectto use when rendering this view into a swapchain.XrViewConfigurationViewrecommendedImageRectHeight(int value)Sets the specified value to therecommendedImageRectHeight()field.intrecommendedImageRectWidth()the optimal width ofimageRectto use when rendering this view into a swapchain.XrViewConfigurationViewrecommendedImageRectWidth(int value)Sets the specified value to therecommendedImageRectWidth()field.intrecommendedSwapchainSampleCount()the recommended number of sub-data element samples to create for each swapchain image that will be rendered into for this view.XrViewConfigurationViewrecommendedSwapchainSampleCount(int value)Sets the specified value to therecommendedSwapchainSampleCount()field.XrViewConfigurationViewset(int type, long next, int recommendedImageRectWidth, int maxImageRectWidth, int recommendedImageRectHeight, int maxImageRectHeight, int recommendedSwapchainSampleCount, int maxSwapchainSampleCount)Initializes this struct with the specified values.XrViewConfigurationViewset(XrViewConfigurationView src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrViewConfigurationViewtype(int value)Sets the specified value to thetype()field.XrViewConfigurationViewtype$Default()Sets theTYPE_VIEW_CONFIGURATION_VIEWvalue to thetype()field.
-
-
-
Constructor Detail
-
XrViewConfigurationView
public XrViewConfigurationView(java.nio.ByteBuffer container)
Creates aXrViewConfigurationViewinstance at the current position of the specifiedByteBuffercontainer. 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
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
recommendedImageRectWidth
public int recommendedImageRectWidth()
the optimal width ofimageRectto use when rendering this view into a swapchain.
-
maxImageRectWidth
public int maxImageRectWidth()
the maximum width ofimageRectsupported when rendering this view into a swapchain.
-
recommendedImageRectHeight
public int recommendedImageRectHeight()
the optimal height ofimageRectto use when rendering this view into a swapchain.
-
maxImageRectHeight
public int maxImageRectHeight()
the maximum height ofimageRectsupported when rendering this view into a swapchain.
-
recommendedSwapchainSampleCount
public int recommendedSwapchainSampleCount()
the recommended number of sub-data element samples to create for each swapchain image that will be rendered into for this view.
-
maxSwapchainSampleCount
public int maxSwapchainSampleCount()
the maximum number of sub-data element samples supported for swapchain images that will be rendered into for this view.
-
type
public XrViewConfigurationView type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrViewConfigurationView type$Default()
Sets theTYPE_VIEW_CONFIGURATION_VIEWvalue to thetype()field.
-
next
public XrViewConfigurationView next(long value)
Sets the specified value to thenext()field.
-
next
public XrViewConfigurationView next(XrFoveatedViewConfigurationViewVARJO value)
Prepends the specifiedXrFoveatedViewConfigurationViewVARJOvalue to thenextchain.
-
next
public XrViewConfigurationView next(XrViewConfigurationDepthRangeEXT value)
Prepends the specifiedXrViewConfigurationDepthRangeEXTvalue to thenextchain.
-
next
public XrViewConfigurationView next(XrViewConfigurationViewFovEPIC value)
Prepends the specifiedXrViewConfigurationViewFovEPICvalue to thenextchain.
-
recommendedImageRectWidth
public XrViewConfigurationView recommendedImageRectWidth(int value)
Sets the specified value to therecommendedImageRectWidth()field.
-
maxImageRectWidth
public XrViewConfigurationView maxImageRectWidth(int value)
Sets the specified value to themaxImageRectWidth()field.
-
recommendedImageRectHeight
public XrViewConfigurationView recommendedImageRectHeight(int value)
Sets the specified value to therecommendedImageRectHeight()field.
-
maxImageRectHeight
public XrViewConfigurationView maxImageRectHeight(int value)
Sets the specified value to themaxImageRectHeight()field.
-
recommendedSwapchainSampleCount
public XrViewConfigurationView recommendedSwapchainSampleCount(int value)
Sets the specified value to therecommendedSwapchainSampleCount()field.
-
maxSwapchainSampleCount
public XrViewConfigurationView maxSwapchainSampleCount(int value)
Sets the specified value to themaxSwapchainSampleCount()field.
-
set
public XrViewConfigurationView set(int type, long next, int recommendedImageRectWidth, int maxImageRectWidth, int recommendedImageRectHeight, int maxImageRectHeight, int recommendedSwapchainSampleCount, int maxSwapchainSampleCount)
Initializes this struct with the specified values.
-
set
public XrViewConfigurationView set(XrViewConfigurationView src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrViewConfigurationView malloc()
Returns a newXrViewConfigurationViewinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrViewConfigurationView calloc()
Returns a newXrViewConfigurationViewinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrViewConfigurationView create()
Returns a newXrViewConfigurationViewinstance allocated withBufferUtils.
-
create
public static XrViewConfigurationView create(long address)
Returns a newXrViewConfigurationViewinstance for the specified memory address.
-
createSafe
@Nullable public static XrViewConfigurationView createSafe(long address)
-
malloc
public static XrViewConfigurationView.Buffer malloc(int capacity)
Returns a newXrViewConfigurationView.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrViewConfigurationView.Buffer calloc(int capacity)
Returns a newXrViewConfigurationView.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrViewConfigurationView.Buffer create(int capacity)
Returns a newXrViewConfigurationView.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrViewConfigurationView.Buffer create(long address, int capacity)
Create aXrViewConfigurationView.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrViewConfigurationView.Buffer createSafe(long address, int capacity)
-
malloc
public static XrViewConfigurationView malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationViewinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrViewConfigurationView calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationViewinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrViewConfigurationView.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationView.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrViewConfigurationView.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrViewConfigurationView.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nrecommendedImageRectWidth
public static int nrecommendedImageRectWidth(long struct)
Unsafe version ofrecommendedImageRectWidth().
-
nmaxImageRectWidth
public static int nmaxImageRectWidth(long struct)
Unsafe version ofmaxImageRectWidth().
-
nrecommendedImageRectHeight
public static int nrecommendedImageRectHeight(long struct)
Unsafe version ofrecommendedImageRectHeight().
-
nmaxImageRectHeight
public static int nmaxImageRectHeight(long struct)
Unsafe version ofmaxImageRectHeight().
-
nrecommendedSwapchainSampleCount
public static int nrecommendedSwapchainSampleCount(long struct)
Unsafe version ofrecommendedSwapchainSampleCount().
-
nmaxSwapchainSampleCount
public static int nmaxSwapchainSampleCount(long struct)
Unsafe version ofmaxSwapchainSampleCount().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nrecommendedImageRectWidth
public static void nrecommendedImageRectWidth(long struct, int value)Unsafe version ofrecommendedImageRectWidth.
-
nmaxImageRectWidth
public static void nmaxImageRectWidth(long struct, int value)Unsafe version ofmaxImageRectWidth.
-
nrecommendedImageRectHeight
public static void nrecommendedImageRectHeight(long struct, int value)Unsafe version ofrecommendedImageRectHeight.
-
nmaxImageRectHeight
public static void nmaxImageRectHeight(long struct, int value)Unsafe version ofmaxImageRectHeight.
-
nrecommendedSwapchainSampleCount
public static void nrecommendedSwapchainSampleCount(long struct, int value)Unsafe version ofrecommendedSwapchainSampleCount.
-
nmaxSwapchainSampleCount
public static void nmaxSwapchainSampleCount(long struct, int value)Unsafe version ofmaxSwapchainSampleCount.
-
-