Converts SRGB color values to XYZ color values.
XMVECTOR XMColorSRGBToXYZ(
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 converted color value with the trisimulus values of X, Y, and Z in the corresponding element, and the W element with Alpha (a copy of rgb.w). Each has a range of 0.0 to 1.0.
Uses the CIE XYZ colorspace.
The sRGB linear color space is defined as IEC 61966-2-1:1999.
Note
XMColorSRGBToXYZis new for DirectXMath and is not available for XNAMath 2.x.
Header: Declared in directxmath.h.