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: Are the in/out storage qualifiers for interface blocks really only allowed in 4.1?

  1. #1
    Intern Newbie
    Join Date
    Mar 2017
    Posts
    47

    Are the in/out storage qualifiers for interface blocks really only allowed in 4.1?

    I was learning about interface blocks today, and read this from the wiki about them:

    Interface blocks are defined as follows:

    ---
    storage_qualifier block_name
    {
    <define members here>
    } instance_name;
    ---

    ...storage_qualifier​ can be one of the following Storage Qualifiers:

    -uniform
    -in or out (requires OpenGL 4.1 or ARB_separate_shader_objects)
    -buffer (requires OpenGL 4.3 or ARB_shader_storage_buffer_object)
    I'm looking at 4.3.7 of the 3.30 GLSL spec, and the interface-qualifier spec for an interface block includes the in and out qualifiers. It seems that OpenGL 3.3 actually allows them. What did the wiki entry mean when it mentions that it requires GL 4.1 in order to use the in and out qualifiers? It looks like to me that 3.3 allows them too, so I'm wondering if the article meant something else, or if it was a typo.

  2. #2
    Senior Member OpenGL Lord
    Join Date
    May 2009
    Posts
    5,925
    If you're looking at the specification and it clearly is different from what the Wiki says, it's OK to just fix the Wiki. That's why it's a Wiki, after all.

  3. #3
    Intern Newbie
    Join Date
    Mar 2017
    Posts
    47
    Oh ok, thanks. Looks like you updated that part. I thought there might've been something nuanced there, so I wanted to double check here.

Posting Permissions

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