D3DCOLORtoUBYTE4 - HLSL
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DCOLORtoUBYTE4 - HLSL


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

Syntax

ret D3DCOLORtoUBYTE4(x)

Where:

NameIn/OutTemplate TypeComponent TypeSize
xinvectorfloat4
retoutvectorinteger4

Minimum Shader Version

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

Vertex ShaderPixel Shader
vs_1_1ps_2_0


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.