KhronosGroup / KhronosGroup/glslang

RFE: Support saving preprocessed GLSL to a file using the existing `-o <file>` option

Open
#3,204 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
3.6k
Forks
989
Avg merge
1d 2h
Merged PRs (30d)
31

Description

It would be useful to be able to save preprocessed GLSL (`-E`) to a file using the `-o ` option.

I'd like to avoid invoking a shell simply to redirect `glslangValidator -E` output to a file.

Contributor guide

Open the contributing guide

Research direction

Start at the glslangValidator command-line handling for the existing -E and -o options. Determine how preprocessed GLSL output is currently emitted, then verify that combining -E with -o writes the output to the requested file without requiring shell redirection.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, compilers
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.