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 3 of 3

Thread: Bindable uniform of sampler2DArray?

  1. #1
    Super Moderator Frequent Contributor Groovounet's Avatar
    Join Date
    Jul 2004
    Posts
    936

    Bindable uniform of sampler2DArray?

    I am just praticing some new extensions of my GeForce 8.

    So during my experients, I tryed to use bindable uniform and sampler2DArray together... I get two OpenGL errors on the fellowing lines:
    const int ArraySamplerSize = glGetUniformBufferSizeEXT(program->GetName(), uniformTextureArray);

    glUniformBufferEXT(program->GetName(), uniformTextureArray, uniformArraySamplerBufferObject);

    Is it possible to use sampler2DArray with bindable uniform? I'm not sure this is useful, just wondering if it should work or not.

  2. #2
    Junior Member Regular Contributor oc2k1's Avatar
    Join Date
    Jan 2007
    Location
    germany
    Posts
    171

    Re: Bindable uniform of sampler2DArray?

    That are 2 completely different things. The sampler2DArray is similar to a 3d texture and the bindable uniform like a 1D array.
    Or did you try to set the sampler uniform variable with a bindable uniform (TMU)? That won't be usefully. (And the TMU numbers are only a artifact of the opengl state machine)

  3. #3
    Super Moderator Frequent Contributor Groovounet's Avatar
    Join Date
    Jul 2004
    Posts
    936

    Re: Bindable uniform of sampler2DArray?

    Sorry, I was thinking about the sampler not the content.

    Thanks

Posting Permissions

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