Bitwise operators in DX9 ps_2_0 shader
- by lapin
I've got the following code in a shader:
// v & y are both floats
nPixel = v;
nPixel << 8;
nPixel |= y;
and this gives me the following error in compilation:
shader.fx(80,10): error X3535: Bitwise operations not supported on legacy targets.
shader.fx(92,18): ID3DXEffectCompiler::CompileEffect: There was an error compiling expression
ID3DXEffectCompiler: Compilation failed
The error is on the following line:
nPixel |= y;
What am I doing wrong here?