XMColorSRGBToRGB

Converts SRGB color values to RGB color values.

Syntax

XMVECTOR XMColorSRGBToRGB(
         XMVECTOR srgb
)  

Parameters

srgb
Type: XMVECTOR 

Color value to convert. X element is Red, Y element is Green, Z element is Blue, and W element is Alpha. Each has a range of 0.0 to 1.0 and is in the linear sRGB colorspace.

Return value

Type: XMVECTOR 

Returns the converetd color value. X element is Red, Y element is Green, Z element is Blue, and W element is Alpha (a copy of srgb.w). Each has a range of 0.0 to 1.0 in the linear RGB colorspace.

Remarks

The sRGB linear color space is defined as IEC 61966-2-1:1999.

Requirements

Header: Declared in directxmath.h.