Bit operations

This topic contains 3 replies, has 2 voices, and was last updated by  Xmas 8 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29810

    hnyk
    Member

    Hi

    I was just wondering why there aren’t bit operations like bit-shift in OpenGL 2.0 ES Shading Language? Is there some architectural reason?

    -hnyk

    #33086

    Xmas
    Member

    This restriction allows implementation of the OpenGL ES 2.0 shader pipeline on hardware which is floating point only.

    #33087

    hnyk
    Member

    Okay, but if it is floating point only, how come there are still variable types like int? Or are they just floating point numbers with lower precision?

    #33088

    Xmas
    Member

    The range requirements for integers are specified so that they can be implemented as floats. Having integers in the language is still useful for type checking and a few other things.

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.