OpenXRFbColorSpaceExtensionWrapper

Inherits: OpenXRExtensionWrapperExtension

Wraps the XR_FB_color_space extension.

Description

Wraps the XR_FB_color_space extension.

A color space defines how digital color values are translated into actual visible colors. Specific displays have a native color space that they are capable of producing.

This extension allows applications to tell the OpenXR runtime what color space we are rendering in, so that it can potentially translate from that into the native color space of the headset's display.

For more information on color management, see: Color Management in Meta Quest Headsets

Methods

ColorSpace

get_color_space ( )

ColorSpace

get_native_color_space ( )

Array

get_supported_color_spaces ( )

bool

is_enabled ( )

void

set_color_space ( ColorSpace color_space )


Enumerations

enum ColorSpace:

ColorSpace COLOR_SPACE_RUNTIME_DEFAULT = 0

The color space the OpenXR runtime selects by default, this may vary depending on the XR device.

This is not a valid option for set_color_space.

ColorSpace COLOR_SPACE_UNMANAGED = 1

Unmanaged color space. Using this will disable color correction.

ColorSpace COLOR_SPACE_REC2020 = 2

Rec. 2020 color space.

ColorSpace COLOR_SPACE_REC709 = 3

Rec. 709 color space.

ColorSpace COLOR_SPACE_RIFT_CV1 = 4

Rift CV1 color space.

ColorSpace COLOR_SPACE_RIFT_S = 5

Rift S color space.

ColorSpace COLOR_SPACE_QUEST = 6

Quest color space.

ColorSpace COLOR_SPACE_P3 = 7

P3 color space.

ColorSpace COLOR_SPACE_ADOBE_RGB = 8

Adobe RGB color space.


Method Descriptions

ColorSpace get_color_space ( )

Returns the currently active color space.


ColorSpace get_native_color_space ( )

Returns the native color space of the XR device.


Array get_supported_color_spaces ( )

Returns an array of supported color spaces that we can pass to set_color_space.


bool is_enabled ( )

Checks if the extension is enabled or not.


void set_color_space ( ColorSpace color_space )

Sets the color space that the app is rendering in.