google / google/shaderc

[Feature Req] Allow preprocessing GLSL files without enabling GL_GOOGLE_cpp_style_line_directive

Open
#1,188 0 comments 1 reaction 1 assignee Claimed by @dneto0 View on GitHub
Dominant language
C++
Stars
2.2k
Forks
445
Avg merge
11h 6m
Merged PRs (30d)
6

Description

I'm using `glslc` to preprocess the same GLSL files targeting both SPIR-V and regular OpenGL 4.1 with a rather limited number of extensions.

The problem? OpenGL 4.1 on my target device isn't a particularly big fan of that extension or any `#line` directives in my source. It would be nice if there was a flag to force glslc to produce 'classic'-style #line directives instead of these custom ones. Perhaps `-no-cpp-style-line-directive`?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.