XOR with OpenGL

  • Follow


Hi all,
I am new into openGL and probably my question will seem a little bit
stupid.
I found into the GLSL specific that in this language it's defined the
Bitwise XOR operator(^).
I'm trying to use it into a shader (.frag) but it doesn't work. Can
someone explain me what happens?
Thanks all.

0
Reply antonio.mariano (1) 9/14/2006 1:13:19 PM

Twain wrote:
> Hi all,
> I am new into openGL and probably my question will seem a little bit
> stupid.
> I found into the GLSL specific that in this language it's defined the
> Bitwise XOR operator(^).
> I'm trying to use it into a shader (.frag) but it doesn't work. Can
> someone explain me what happens?

Bitwise operators ^ & | are not supported by GLSL.
They are reserved for future use.
They are pretty useless now, as integer data type
is used only for array indexing, loops, etc.
When there are integer format samplers, bitwise
ops are also going to be introduced.
What effect do you want to achieve?
Can you show us your shaders?

0
Reply mjkrol 9/15/2006 10:51:05 PM


1 Replies
328 Views

(page loaded in 0.035 seconds)

Similiar Articles:













7/22/2012 12:34:39 AM


Reply: