google / google/shaderc

"ES shaders for SPIR-V require version 310 or higher" when only pre-processing with -E

Open
#1,125 1 comment 0 reactions 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

Even though I'm using -E switch for pre-processing only, glslc shows the following error: "ES shaders for SPIR-V require version 310 or higher" for shaders which have #version 300 es as their first line.

I would expect glslc to skip this error check when -E switch is specified.

Workaround for this issue is to specify -std=320es parameter, which disables (hacks around) that error, and (hopefully) does not affect the pre-processing results.

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.