All pastes #2080757 Raw Edit

Someone

public text v1 · immutable
#2080757 ·published 2011-09-11 11:00 UTC
rendered paste body

Hi ian,

I have question about the use in ff (fixed function) with those extensinons.
So quoting two hunks and asking them from you.
####    
    If ARB_separate_shader_objects (or OpenGL 4.1) is supported, the layout
    location qualifier introduced by this extension is extended to apply to
    inputs for non-vertex shaders and outputs for non-fragment shaders.  If
    ARB_gpu_shader_fp64 (or OpenGL 4.0) is supported, such inputs and outputs
    can have double-precision component types
RESOLVED.  location.  The API uses both.  <index> is used as the
       parameter name to VertexAttribPointer and BindAttribLocation, but
       "location" is used in the name of BindAttribLocation and
       GetAttribLocation.  However, there is some expectation that <index> may
       be used for another purpose later.
####

Does that mean when defining that extension and specifying layout qualifier with  location in shader I could access the value with glgetvertexattrib in ff ==
fixed function? I can't test at the moment myself!

And another question, can i just #define the ARB_separate_shader_object extension without using those qualifiers, and use BindAttrib location for all in out varyings as well as attributes with the same glapi in 1.30 version, get and set their values, or
can you program it so if that would not work?

worse case of scenario when both would not work, get setting under fixed function
that is outside of glbegin or inside my meaning, immediate and ff!


regards,
mart