| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OpenXR.Extensions.XR_FB_color_space
Description
Name
XR_FB_color_space - instance extension
Specification
See XR_FB_color_space in the main specification for complete information.
Registered Extension Number
109
Revision
1
Extension and Version Dependencies
- Requires OpenXR 1.0
See Also
ColorSpaceFB, SystemColorSpacePropertiesFB,
enumerateColorSpacesFB, setColorSpaceFB
Document Notes
For more information, see the OpenXR Specification
This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.
Synopsis
- enumerateColorSpacesFB :: forall io. MonadIO io => Session -> io (Result, "colorSpaces" ::: Vector ColorSpaceFB)
- setColorSpaceFB :: forall io. MonadIO io => Session -> ColorSpaceFB -> io Result
- data SystemColorSpacePropertiesFB = SystemColorSpacePropertiesFB {}
- newtype ColorSpaceFB where
- ColorSpaceFB Int32
- pattern COLOR_SPACE_UNMANAGED_FB :: ColorSpaceFB
- pattern COLOR_SPACE_REC2020_FB :: ColorSpaceFB
- pattern COLOR_SPACE_REC709_FB :: ColorSpaceFB
- pattern COLOR_SPACE_RIFT_CV1_FB :: ColorSpaceFB
- pattern COLOR_SPACE_RIFT_S_FB :: ColorSpaceFB
- pattern COLOR_SPACE_QUEST_FB :: ColorSpaceFB
- pattern COLOR_SPACE_P3_FB :: ColorSpaceFB
- pattern COLOR_SPACE_ADOBE_RGB_FB :: ColorSpaceFB
- type FB_color_space_SPEC_VERSION = 1
- pattern FB_color_space_SPEC_VERSION :: forall a. Integral a => a
- type FB_COLOR_SPACE_EXTENSION_NAME = "XR_FB_color_space"
- pattern FB_COLOR_SPACE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a
Documentation
enumerateColorSpacesFB :: forall io. MonadIO io => Session -> io (Result, "colorSpaces" ::: Vector ColorSpaceFB) Source #
xrEnumerateColorSpacesFB - Enumerates color spaces
Parameter Descriptions
sessionis the session that enumerates the supported color spaces.
colorSpaceCapacityInputis the capacity of thecolorSpacesarray, or 0 to retrieve the required capacity.colorSpaceCountOutputis a pointer to the count ofColorSpaceFBcolorSpaceswritten, or a pointer to the required capacity in the case thatcolorSpaceCapacityInputis0.colorSpacesis a pointer to an array ofColorSpaceFBcolor spaces, but can beNULLifcolorSpaceCapacityInputis0.- See
Buffer Size Parameters
chapter for a detailed description of retrieving the required
colorSpacessize.
Description
enumerateColorSpacesFB enumerates the color spaces supported by the
current session. Runtimes must always return identical buffer contents
from this enumeration for the lifetime of the session.
Valid Usage (Implicit)
- The @@
extension must be enabled prior to calling
enumerateColorSpacesFB
-
sessionmust be a validSessionhandle -
colorSpaceCountOutputmust be a pointer to auint32_tvalue - If
colorSpaceCapacityInputis not0,colorSpacesmust be a pointer to an array ofcolorSpaceCapacityInputColorSpaceFBvalues
Return Codes
See Also
Arguments
| :: forall io. MonadIO io | |
| => Session |
|
| -> ColorSpaceFB | |
| -> io Result |
xrSetColorSpaceFB - Set a color space
Parameter Descriptions
Description
setColorSpaceFB provides a mechanism for an application to specify the
color space used in the final rendered frame. If this function is not
called, the session will use the color space deemed appropriate by the
runtime. Facebook HMDs for both PC and Mobile product lines default to
COLOR_SPACE_RIFT_CV1_FB. The runtime must return
ERROR_COLOR_SPACE_UNSUPPORTED_FB if
colorSpace is not one of the values enumerated by
enumerateColorSpacesFB.
Valid Usage (Implicit)
- The @@ extension
must be enabled prior to calling
setColorSpaceFB
-
sessionmust be a validSessionhandle -
colorspacemust be a validColorSpaceFBvalue
Return Codes
See Also
data SystemColorSpacePropertiesFB Source #
XrSystemColorSpacePropertiesFB - System property for color space
Valid Usage (Implicit)
- The @@
extension must be enabled prior to using
SystemColorSpacePropertiesFB
-
typemust beTYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB -
nextmust beNULLor a valid pointer to the next structure in a structure chain -
colorSpacemust be a validColorSpaceFBvalue
See Also
Constructors
| SystemColorSpacePropertiesFB | |
Fields
| |
Instances
newtype ColorSpaceFB Source #
XrColorSpaceFB - Color Space Type
Enumerant Descriptions
See Also
SystemColorSpacePropertiesFB, enumerateColorSpacesFB,
setColorSpaceFB
Constructors
| ColorSpaceFB Int32 |
Bundled Patterns
| pattern COLOR_SPACE_UNMANAGED_FB :: ColorSpaceFB |
|
| pattern COLOR_SPACE_REC2020_FB :: ColorSpaceFB |
|
| pattern COLOR_SPACE_REC709_FB :: ColorSpaceFB |
|
| pattern COLOR_SPACE_RIFT_CV1_FB :: ColorSpaceFB |
Color Space Details with Chromacity Primaries in CIE 1931 xy:
|
| pattern COLOR_SPACE_RIFT_S_FB :: ColorSpaceFB |
Color Space Details with Chromacity Primaries in CIE 1931 xy:
|
| pattern COLOR_SPACE_QUEST_FB :: ColorSpaceFB |
Color Space Details with Chromacity Primaries in CIE 1931 xy:
|
| pattern COLOR_SPACE_P3_FB :: ColorSpaceFB |
Color Space Details with Chromacity Primaries in CIE 1931 xy:
|
| pattern COLOR_SPACE_ADOBE_RGB_FB :: ColorSpaceFB |
|
Instances
type FB_color_space_SPEC_VERSION = 1 Source #
pattern FB_color_space_SPEC_VERSION :: forall a. Integral a => a Source #
type FB_COLOR_SPACE_EXTENSION_NAME = "XR_FB_color_space" Source #
pattern FB_COLOR_SPACE_EXTENSION_NAME :: forall a. (Eq a, IsString a) => a Source #