8000 10BC0
Skip to content

Add support for SHADER_NAME#55

Open
hughsk wants to merge 2 commits intomasterfrom
shader-names
Open

Add support for SHADER_NAME#55
hughsk wants to merge 2 commits intomasterfrom
shader-names

Conversation

@hughsk
Copy link
Copy Markdown
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.

hughsk added 2 commits June 25, 2015 12:46
Useful for assisting developer tools in identifying shaders
@mattdesl
Copy link
Copy Markdown
Contributor

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

@mikolalysenko
Copy link
Copy Markdown
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.

3 participants

0