| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OpenXR.Core10.ViewConfigurations
Synopsis
- enumerateViewConfigurations :: forall io. MonadIO io => Instance -> SystemId -> io ("viewConfigurationTypes" ::: Vector ViewConfigurationType)
- getViewConfigurationProperties :: forall io. MonadIO io => Instance -> SystemId -> ViewConfigurationType -> io ViewConfigurationProperties
- enumerateViewConfigurationViews :: forall a io. (Extendss ViewConfigurationView a, PokeChain a, PeekChain a, MonadIO io) => Instance -> SystemId -> ViewConfigurationType -> io ("views" ::: Vector (ViewConfigurationView a))
- data ViewConfigurationView (es :: [Type]) = ViewConfigurationView {}
- data ViewConfigurationProperties = ViewConfigurationProperties {}
Documentation
enumerateViewConfigurations :: forall io. MonadIO io => Instance -> SystemId -> io ("viewConfigurationTypes" ::: Vector ViewConfigurationType) Source #
xrEnumerateViewConfigurations - Enumerates supported view configurations
Parameter Descriptions
instanceis the instance from whichsystemIdwas retrieved.
systemIdis the https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId whose view configurations will be enumerated.viewConfigurationsTypeCapacityInputis the capacity of theviewConfigurationsarray, or 0 to indicate a request to retrieve the required capacity.viewConfigurationsTypeCountOutputis a pointer to the count ofviewConfigurationswritten, or a pointer to the required capacity in the case thatviewConfigurationsTypeCapacityInputis 0.viewConfigurationsTypesis a pointer to an array ofViewConfigurationTypevalues, but can beNULLifviewConfigurationsTypeCapacityInputis 0.- See
Buffer Size Parameters
chapter for a detailed description of retrieving the required
viewConfigurationssize.
Description
enumerateViewConfigurations enumerates the view configuration types
supported by the
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId.
The supported set for that system must not change during the lifetime
of its Instance. The returned list of primary
view configurations should be in order from what the runtime
considered highest to lowest user preference. Thus the first enumerated
view configuration type should be the one the runtime prefers the
application to use if possible.
Runtimes must always return identical buffer contents from this
enumeration for the given systemId and for the lifetime of the
instance.
Valid Usage (Implicit)
-
instancemust be a validInstancehandle
-
viewConfigurationTypeCountOutputmust be a pointer to auint32_tvalue -
If
viewConfigurationTypeCapacityInputis not0,viewConfigurationTypesmust be a pointer to an array ofviewConfigurationTypeCapacityInputViewConfigurationTypevalues
Return Codes
See Also
Instance,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId,
ViewConfigurationType
getViewConfigurationProperties Source #
Arguments
| :: forall io. MonadIO io | |
| => Instance |
|
| -> SystemId |
|
| -> ViewConfigurationType |
|
| -> io ViewConfigurationProperties |
xrGetViewConfigurationProperties - Gets information for a view configuration
Parameter Descriptions
Description
getViewConfigurationProperties queries properties of an individual
view configuration. Applications must use one of the supported view
configuration types returned by enumerateViewConfigurations. If
viewConfigurationType is not supported by this
Instance the runtime must return
ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED.
Return Codes
See Also
Instance,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId,
ViewConfigurationProperties,
ViewConfigurationType
enumerateViewConfigurationViews Source #
Arguments
| :: forall a io. (Extendss ViewConfigurationView a, PokeChain a, PeekChain a, MonadIO io) | |
| => Instance |
|
| -> SystemId |
|
| -> ViewConfigurationType |
|
| -> io ("views" ::: Vector (ViewConfigurationView a)) |
xrEnumerateViewConfigurationViews - Gets view configuration views
Parameter Descriptions
Description
Each ViewConfigurationType
defines the number of views associated with it. Applications can query
more details of each view element using
enumerateViewConfigurationViews. If the supplied
viewConfigurationType is not supported by this
Instance and
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId,
the runtime must return
ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED.
Runtimes must always return identical buffer contents from this
enumeration for the given systemId and viewConfigurationType for the
lifetime of the instance.
Valid Usage (Implicit)
-
instancemust be a validInstancehandle
-
viewConfigurationTypemust be a validViewConfigurationTypevalue -
viewCountOutputmust be a pointer to auint32_tvalue - If
viewCapacityInputis not0,viewsmust be a pointer to an array ofviewCapacityInputViewConfigurationViewstructures
Return Codes
See Also
Instance,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId,
ViewConfigurationType,
ViewConfigurationView, getViewConfigurationProperties
data ViewConfigurationView (es :: [Type]) Source #
XrViewConfigurationView - Individual view configuration
Member Descriptions
Description
See SwapchainSubImage for more information
about imageRect values, and SwapchainCreateInfo
for more information about creating swapchains appropriately sized to
support those imageRect values.
The array of ViewConfigurationView returned by the runtime must
adhere to the rules defined in
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#view_configuration_type,
such as the count and association to the left and right eyes.
Valid Usage (Implicit)
See Also
StructureType,
ViewConfigurationProperties,
ViewConfigurationType,
enumerateViewConfigurationViews
Constructors
| ViewConfigurationView | |
Fields
| |
Instances
data ViewConfigurationProperties Source #
XrViewConfigurationProperties - Detailed configuration properties for an XrViewConfigurationProperties
Valid Usage (Implicit)
See Also
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrBool32,
StructureType,
ViewConfigurationType,
ViewConfigurationView, getViewConfigurationProperties
Constructors
| ViewConfigurationProperties | |
Fields
| |