Converts SRGB color values to RGB color values.
XMVECTOR XMColorSRGBToRGB(
XMVECTOR srgb
)
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.
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.
The sRGB linear color space is defined as IEC 61966-2-1:1999.
Header: Declared in directxmath.h.