Package org.lwjgl.openxr
Class XrSecondaryViewConfigurationSwapchainCreateInfoMSFT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrSecondaryViewConfigurationSwapchainCreateInfoMSFT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrSecondaryViewConfigurationSwapchainCreateInfoMSFT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceHint to runtime that the created swapchain image will be used for given secondary view configuration.Description
If this structure is not present in the
XrSwapchainCreateInfonext chain when callingCreateSwapchain, the runtime should optimize the created swapchain for the primary view configuration of the session.If the application submits a swapchain image created with one view configuration type to a composition layer for another view configuration, the runtime may need to copy the resource across view configurations. However, the runtime must correctly compose the image regardless which view configuration type was hinted when swapchain image was created.
Valid Usage (Implicit)
- The
XR_MSFT_secondary_view_configurationextension must be enabled prior to usingXrSecondaryViewConfigurationSwapchainCreateInfoMSFT typemust beTYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFTnextmust beNULLor a valid pointer to the next structure in a structure chainviewConfigurationTypemust be a validXrViewConfigurationTypevalue
See Also
Layout
struct XrSecondaryViewConfigurationSwapchainCreateInfoMSFT { XrStructureTypetype(); void const *next(); XrViewConfigurationTypeviewConfigurationType(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.BufferAn array ofXrSecondaryViewConfigurationSwapchainCreateInfoMSFTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPE
VIEWCONFIGURATIONTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(java.nio.ByteBuffer container)Creates aXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrSecondaryViewConfigurationSwapchainCreateInfoMSFTcalloc()Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance allocated withmemCalloc.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffercalloc(int capacity)Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance allocated withmemCalloc.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFTcreate()Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance allocated withBufferUtils.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffercreate(int capacity)Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance allocated withBufferUtils.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFTcreate(long address)Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance for the specified memory address.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffercreate(long address, int capacity)Create aXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance at the specified memory.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFTcreateSafe(long address)static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.BuffercreateSafe(long address, int capacity)static XrSecondaryViewConfigurationSwapchainCreateInfoMSFTmalloc()Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance allocated withmemAlloc.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffermalloc(int capacity)Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance allocated withmemAlloc.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSecondaryViewConfigurationSwapchainCreateInfoMSFTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrSecondaryViewConfigurationSwapchainCreateInfoMSFTnext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.static intnviewConfigurationType(long struct)Unsafe version ofviewConfigurationType().static voidnviewConfigurationType(long struct, int value)Unsafe version ofviewConfigurationType.XrSecondaryViewConfigurationSwapchainCreateInfoMSFTset(int type, long next, int viewConfigurationType)Initializes this struct with the specified values.XrSecondaryViewConfigurationSwapchainCreateInfoMSFTset(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrSecondaryViewConfigurationSwapchainCreateInfoMSFTtype(int value)Sets the specified value to thetype()field.XrSecondaryViewConfigurationSwapchainCreateInfoMSFTtype$Default()Sets theTYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFTvalue to thetype()field.intviewConfigurationType()the secondary view configuration type the application is intending to use this swapchain for.XrSecondaryViewConfigurationSwapchainCreateInfoMSFTviewConfigurationType(int value)Sets the specified value to theviewConfigurationType()field.
-
-
-
Constructor Detail
-
XrSecondaryViewConfigurationSwapchainCreateInfoMSFT
public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT(java.nio.ByteBuffer container)
Creates aXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance 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 or this extension.
-
viewConfigurationType
public int viewConfigurationType()
the secondary view configuration type the application is intending to use this swapchain for.
-
type
public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT type$Default()
Sets theTYPE_SECONDARY_VIEW_CONFIGURATION_SWAPCHAIN_CREATE_INFO_MSFTvalue to thetype()field.
-
next
public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT next(long value)
Sets the specified value to thenext()field.
-
viewConfigurationType
public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT viewConfigurationType(int value)
Sets the specified value to theviewConfigurationType()field.
-
set
public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT set(int type, long next, int viewConfigurationType)
Initializes this struct with the specified values.
-
set
public XrSecondaryViewConfigurationSwapchainCreateInfoMSFT set(XrSecondaryViewConfigurationSwapchainCreateInfoMSFT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT malloc()
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT calloc()
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT create()
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance allocated withBufferUtils.
-
create
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT create(long address)
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance for the specified memory address.
-
createSafe
@Nullable public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT createSafe(long address)
-
malloc
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer malloc(int capacity)
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer calloc(int capacity)
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer create(int capacity)
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer create(long address, int capacity)
Create aXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer createSafe(long address, int capacity)
-
malloc
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrSecondaryViewConfigurationSwapchainCreateInfoMSFT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrSecondaryViewConfigurationSwapchainCreateInfoMSFT.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().
-
nviewConfigurationType
public static int nviewConfigurationType(long struct)
Unsafe version ofviewConfigurationType().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nviewConfigurationType
public static void nviewConfigurationType(long struct, int value)Unsafe version ofviewConfigurationType.
-
-