Results 1 to 2 of 2

Thread: precision highp int?

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Posts
    9

    precision highp int?

    Hi ,

    I can understand the precision qualifier like "precision mediump float" but what's the point for assigning "precision mediump int"? Are there any differences between "precision highp int" & "precision mediump int"? I mean for an Interger, the floating point precision does not make any sense. Or does the highp or mediump refers to 64bit or 32 bit integer?

    Thanks,

    -Mike

  2. #2
    Senior Member
    Join Date
    May 2006
    Posts
    353

    Re: precision highp int?

    Have a look at section 4.5.2 of the GLSL ES spec.

    The minimum ranges that OpenGL ES 2.0 implementations have to support for integers are:
    lowp [-255, +255]
    mediump [-1023, +1023]
    highp [-65535, +65535]

    Support for integers is quite limited in GLSL ES, and the ranges are chosen so that mediump and highp ints may be implemented using mediump and highp floats, respectively.
    Georg Kolling, Imagination Technologies
    Please ask questions specific to PowerVR hardware or SDKs on the PowerVR Insider Forum
    DevTech@imgtec.com | http://www.powervrinsider.com

Similar Threads

  1. Replies: 7
    Last Post: 02-09-2011, 05:59 PM
  2. unsigned int or cl_uint?
    By mihzaha in forum OpenCL
    Replies: 1
    Last Post: 08-18-2010, 12:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •