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: Binding separable programs to an unbound program pipeline

  1. #1
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,128

    Binding separable programs to an unbound program pipeline

    Hello everyone.

    I'm currently wondering about the way things work with glGenProgramPipelines, glBindProgramPipeline and glUseProgramStages.

    The spec says that generating names alone will mark them for use as pipeline objects but only first binding them will allocate a new default state vector. However, on the current AMD implementation I'm testing, I can alter the state of the pipeline before ever binding it. This makes sense as glUseProgramStages is a DSA function and it is not listed as an error by the spec but I'm wondering if implementations will simply create the state vector anyway and simply mark the names as used or something when binding. Otherwise it doesn't really make sense one can alter state variable that have yet to be allocated.

    Am I missing something here?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Mar 2009
    Posts
    153
    Description of UseProgramStages command:

    If pipeline is a name that has been generated (without subsequent deletion) by
    GenProgramPipelines, but refers to a program pipeline object that has not been
    previously bound, the GL first creates a new state vector in the same manner as
    when BindProgramPipeline creates a new program pipeline object.

  3. #3
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,128
    Thank you. Please excuse my being an idiot.

Posting Permissions

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