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

Thread: sampler2DRect vs samplerRect

  1. #1
    Intern Contributor
    Join Date
    Dec 2011
    Posts
    85

    sampler2DRect vs samplerRect

    As titled, I wish to know the difference between sampler2DRect and samplerRect


    I already googled, but I couldnt find anything clear and precise.

    From what I found, it looks to me like samplerRect is somehow a relict of the past on the NV cards, that was standardized later as sampler2DRect, is that right?

  2. #2

  3. #3
    Administrator Regular Contributor Khronos_webmaster's Avatar
    Join Date
    Apr 2007
    Location
    Montreal
    Posts
    175
    Original Answer on StackOverflow: We don't want the OpenGL forums to become nothing more than a series of links to some other places:

    I think you're essentially correct; there's both an Nvidia extension and some ARB history involved here.

    In the earliest version of ARB_texture_rectangle, the specification referred to samplerRect and samplerRectShadow. You can see that this was changed in early 2005.

    I see references to samplerRect working on Nvidia cards circa 2005, and it's noteworthy that NV_texture_rectangle is nearly identical to ARB_texture_rectangle except for not specifying the interactions with GLSL. So, it appears that Nvidia had a working implementation of the ARB extension quickly, based on an early draft of that extension, because they had a very similar vendor-specific extension shipping.

    As of February 2005, ARB_texture_rectangle specified sampler2DRect, so samplerRect is (as you say) a relic of that interval between March 2004 and February 2005.
    Webmaster Khronos.org and OpenGL.org

  4. #4
    Intern Contributor
    Join Date
    Dec 2011
    Posts
    85
    Quote Originally Posted by Khronos_webmaster View Post
    Original Answer on StackOverflow: We don't want the OpenGL forums to become nothing more than a series of links to some other places:
    Sorry, I didnt mean that, I will copy paste next time

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
  •