google / google/shaderc

How to preserve comments in glsl files?

Open
#1,192 2 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

We set -g, but I noted that glslc says " Generate source-level debug information. Currently this option has no effect.". I don't see any comments by the time we've run spirv-opt and spirv-cross back to Metal. The original GLSL has comments that are important to preserve in debug builds. It may be that we need flags subsequent to glslc, so I will look at the preprocessed output.

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.