D3DCOLORtoUBYTE4 - HLSL

Swizzles and scales components of the 4D vector x to compensate for the lack of UBYTE4 support in some hardware.

Syntax

ret D3DCOLORtoUBYTE4(x)

Where:

Name In/Out Template Type Component Type Size
x in vector float 4
ret out vector integer 4

Minimum Shader Version

This intrinsic function is supported in the following (or above) shader versions:

Vertex Shader Pixel Shader
vs_1_1 ps_2_0

See Also

HLSL Intrinsic Functions