Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: A call to get dimensions of image units in GLSL, just like textureSize

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    21

    A call to get dimensions of image units in GLSL, just like textureSize

    Not exactly a big suggestion but here goes...

    textureSize(sampler, level)
    is a handy function to get texture dimensions in a shader without having to pass them in by hand as uniforms.


    It'd be really useful to have this feature for image units from the image_load_store extension too. Does a method already exist and I've missed it or is it useful to enough people to be in this forum?

  2. #2

Tags for this Thread

Posting Permissions

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