Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for SHADER_NAME #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add support for SHADER_NAME #55

wants to merge 2 commits into from

Conversation

hughsk
Copy link
Member

@hughsk hughsk commented Jun 25, 2015

As per this discussion:

/cc @mattdesl @mikolalysenko any thoughts on this? Currently it's always on, but could have it opt-in or opt-out.

Useful for assisting developer tools in identifying shaders
@mattdesl
Copy link
Contributor

Hmm seems a bit app-specific, maybe better as a global transform?

@mikolalysenko
Copy link
Contributor

It might be worth revisiting this idea. I'd like to figure out a better way to identify shaders and line numbers in glslify so that we can report errors correctly. Maybe we could use the #line preprocessor command and SHADER_NAME to implement something like a glsl source map?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants