google / google/shaderc

Support for skipping preprocessing

Open
#1,425 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.2k
Forks
445
Avg merge
11h 6m
Merged PRs (30d)
6

Description

It would be nice to have the option of skipping the preprocessor. As an example, gcc does it with the -fpreprocessed: https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html#index-fpreprocessed

This is useful for cases when the preprocessed file is held on for later and enables skipping the redundant preprocessor step when using a pattern like:

glslc -E -o FOO.i.frag FOO.frag
glslc -c -o FOO.spv FOO.i.frag

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.