XMConvertFloatToHalfStream
XMConvertHalfToFloatStream
XMMatrixDecompose
XMPlaneTransformStream
XMVector2TransformCoordStream
XMVector2TransformNormalStream
XMVector2TransformStream
XMVector3ProjectStream
XMVector3TransformCoordStream
XMVector3TransformNormalStream
XMVector3TransformStream
XMVector3UnprojectStream
XMVector4TransformStream
Expand Minimize

XMColorSRGBToXYZ method

Converts SRGB color values to XYZ color values.

Syntax


XMVECTOR XMColorSRGBToXYZ(
  [in]  XMVECTOR srgb
);

Parameters

srgb [in]

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

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.

Remarks

Uses the CIE XYZ colorspace.

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

Note  XMColorSRGBToXYZ is new for DirectXMath and is not available for XNAMath 2.x.

Platform Requirements

Microsoft Visual Studio 2010 or Microsoft Visual Studio 2012 with the Windows SDK for Windows 8. Supported for Win32 desktop apps, Windows Store apps, and Windows Phone 8 apps.

Requirements

Namespace

Use DirectX.

Header

DirectXMath.h

See also

XMColorXYZToSRGB

 

 

Community Additions

ADD
Show:
© 2014 Microsoft