XMColorSRGBToRGB method

Converts an sRGB color vector to RGB.

Syntax


XMVECTOR XMColorSRGBToRGB(
   FXMVECTOR srgb
);

Parameters

srgb

An sRGB color vector.

Return value

Returns an XMVECTOR describing the converted RGBA color vector. The x element is red, the y element is green, the z element is blue, and the w element is the alpha value (which is a copy of srgb.w). Each element value has a range of 0.0 to 1.0 in the RGB colorspace.

Requirements

Namespace

Use DirectX.

Header

DirectXMath.h

See also

DirectXMath Library Color Functions
XMColorRGBToSRGB

 

 

Show: