Original Post
Hi I've got a function which I want to move onto the GPU. Unfortunately, I am using DX9, so don't have access to SM4.0! Therefore my HLSL has no bitwise operators..... So how can I express bitwise functions in HLSL? For example: int i = val & 15; and if ( i&1 ) DoStuff; Thanks for any advice! My binary maths is pretty poor! Simon