?/TD>
Microsoft DirectX 9.0

frc (Vertex Shader)


Returns the fractional portion of each input component.

Syntax

frc dst, src

where

Remarks

Vertex shader versions1_12_02_x2_sw3_03_sw
frcxxxxxx

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.

For version 1_1, the allowable write masks are .y and .xy (.x is not allowed).

Instruction Information

Minimum operating systemWindows 98


© 2002 Microsoft Corporation. All rights reserved.