frc (Pixel Shader)
Returns the fractional portion of each input component.
Syntax
where
- dst is the destination register.
- src is a source register.
Remarks
Pixel shader versions | 1_1 | 1_2 | 1_3 | 1_4 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
---|
frc | | | | | x | x | x | x | x |
---|
The following code fragment shows conceptually how the instruction operates.
dest.x = src.x - (float)floor(src.x);
dest.y = src.y - (float)floor(src.y);
dest.z = src.z - (float)floor(src.z);
dest.w = src.w - (float)floor(src.w);
Each component of the result is in the range from 0.0 through 1.0.
Instruction Information
Minimum operating system | Windows 98 |
---|