Swizzles and scales components of the 4D vector x to compensate for the lack of UBYTE4 support in some hardware.
ret D3DCOLORtoUBYTE4(x) |
---|
Where:
Name | In/Out | Template Type | Component Type | Size |
---|---|---|---|---|
x | in | vector | float | 4 |
ret | out | vector | integer | 4 |
This intrinsic function is supported in the following (or above) shader versions:
Vertex Shader | Pixel Shader |
---|---|
vs_1_1 | ps_2_0 |