Author Topic: GLSL debug  (Read 2324 times)

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
GLSL debug
« on: June 05, 2014, 03:53:38 pm »
Hi everyone,

Has anyone tried glsl debugging before on pc? I'm trying on glslDevil and Perf Studio, but with no luck, both don't work.

Offline AGP

  • quad
  • ******
  • Posts: 1726
    • View Profile
Re: GLSL debug
« Reply #1 on: June 06, 2014, 12:57:25 am »
I don't remember which one I tried, but I did try one that worked fine. I'll be getting back to a shader on which I'm working (in a fairly blind, inexperienced way, I might add) in the near future, so I'll look it up.

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: GLSL debug
« Reply #2 on: June 06, 2014, 03:28:59 am »
Thanks alot, AGP. Looking forward to it. I have been spending few nights figuring how to debug a shader and it's really pain in the a**.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: GLSL debug
« Reply #3 on: June 06, 2014, 08:37:17 am »
I think that i tried Perf Studio once but without much luck. I can't remember what the problem was though. Then again, i'm not a debugger guy anyway... ;D

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: GLSL debug
« Reply #4 on: June 06, 2014, 12:01:55 pm »
That's pretty cool that you built the entire JPCT shader without using debugger~ how did you do that?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: GLSL debug
« Reply #5 on: June 06, 2014, 01:55:07 pm »
By looking at the output of the driver's shader compiler (in case of actual syntax errors) and by wild guessing. I'm not using debuggers for coding anyway, so i'm used to this way of doing it.