Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
instance
is the instance from whichsystemId
was retrieved.
systemId
is the https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId whose view configurations will be enumerated.viewConfigurationsTypeCapacityInput
is the capacity of theviewConfigurations
array, or 0 to indicate a request to retrieve the required capacity.viewConfigurationsTypeCountOutput
is a pointer to the count ofviewConfigurations
written, or a pointer to the required capacity in the case thatviewConfigurationsTypeCapacityInput
is 0.viewConfigurationsTypes
is a pointer to an array ofViewConfigurationType
values, but can beNULL
ifviewConfigurationsTypeCapacityInput
is 0.- See
Buffer Size Parameters
chapter for a detailed description of retrieving the required
viewConfigurations
size.
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)
-
instance
must be a validInstance
handle
-
viewConfigurationTypeCountOutput
must be a pointer to auint32_t
value -
If
viewConfigurationTypeCapacityInput
is not0
,viewConfigurationTypes
must be a pointer to an array ofviewConfigurationTypeCapacityInput
ViewConfigurationType
values
Return Codes
See Also
Instance
,
https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XrSystemId,
ViewConfigurationType
getViewConfigurationProperties Source #
:: 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 #
:: 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)
-
instance
must be a validInstance
handle
-
viewConfigurationType
must be a validViewConfigurationType
value -
viewCountOutput
must be a pointer to auint32_t
value - If
viewCapacityInput
is not0
,views
must be a pointer to an array ofviewCapacityInput
ViewConfigurationView
structures
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
ViewConfigurationView | |
|
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
ViewConfigurationProperties | |
|