Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: Dumping ObjectCode from Shaders??

  1. #21
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: Dumping ObjectCode from Shaders??

    Originally posted by yooyo:
    Someone can put opengl32.dll into app dir and intercept all OpenGL calls. In one of this call's will be your shader soruce.

    Accidently I found that using CG shaders in separate thread and context cannot be intercepted using glIntercept. I didn't try glDEBuger.

    yooyo
    It looks interresting. And when using GLSL instead of Cg (in another thread and another context too), could we still get the shader sources ?

    I haven't read all about shaders yet But how do (or should) they behave in a multithreading program ? Should they be thread independant ? Does the ARB discusses this, and where can I have some information about that ?

    Actually I think they should not be context dependant, but I might be wrong...

  2. #22
    Advanced Member Frequent Contributor yooyo's Avatar
    Join Date
    Apr 2003
    Location
    Belgrade, Serbia
    Posts
    883

    Re: Dumping ObjectCode from Shaders??

    I suppose this is a issue related to glIntercept.

    yooyo

  3. #23
    Senior Member OpenGL Pro sqrt[-1]'s Avatar
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    1,006

    Re: Dumping ObjectCode from Shaders??

    yooyoo
    If you want me to sort out the GLIntercept issue, email a link to your app (or a binary if under 2MB) to dtrebilco 'at' techie.com.

  4. #24
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Jul 2000
    Location
    S41.16.25 E173.16.21
    Posts
    2,609

    Re: Dumping ObjectCode from Shaders??

    this along with cubemap shadows are the two things that i want in gl, i cant see whats difficult to do. just do a check of the shader binary stamp (containing the driver + card it was compiled on) to see if its the same with the current configuration.
    personally though ild just settle for something for the developers (not endusers) ie with no check, wanting for the shaders to compile is the biggest slowdown in my startup time

Posting Permissions

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