Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
session
is the session that enumerates the supported color spaces.
colorSpaceCapacityInput
is the capacity of thecolorSpaces
array, or 0 to retrieve the required capacity.colorSpaceCountOutput
is a pointer to the count ofColorSpaceFB
colorSpaces
written, or a pointer to the required capacity in the case thatcolorSpaceCapacityInput
is0
.colorSpaces
is a pointer to an array ofColorSpaceFB
color spaces, but can beNULL
ifcolorSpaceCapacityInput
is0
.- See
Buffer Size Parameters
chapter for a detailed description of retrieving the required
colorSpaces
size.
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
-
session
must be a validSession
handle -
colorSpaceCountOutput
must be a pointer to auint32_t
value - If
colorSpaceCapacityInput
is not0
,colorSpaces
must be a pointer to an array ofcolorSpaceCapacityInput
ColorSpaceFB
values
Return Codes
See Also
:: 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
-
session
must be a validSession
handle -
colorspace
must be a validColorSpaceFB
value
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
-
type
must beTYPE_SYSTEM_COLOR_SPACE_PROPERTIES_FB
-
next
must beNULL
or a valid pointer to the next structure in a structure chain -
colorSpace
must be a validColorSpaceFB
value
See Also
SystemColorSpacePropertiesFB | |
|
Instances
newtype ColorSpaceFB Source #
XrColorSpaceFB - Color Space Type
Enumerant Descriptions
See Also
SystemColorSpacePropertiesFB
, enumerateColorSpacesFB
,
setColorSpaceFB
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 #