diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-02-16 12:00:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-16 12:00:20 -0800 |
| commit | 8c872597540b2287bc18d5723c7ae3b8832246b8 (patch) | |
| tree | a40698aad0732e6078bf81229df6b1a54b1fd388 /source/slang/syntax.cpp | |
| parent | 1b93da040ef00836438437e998c1c9584e3fd4ac (diff) | |
Implement IR-level translation of system values for GLSL (#413)
The approach here isn't ideal. We already have a pass that transforms HLSL varying input/output types into GLSL global variables. This change makes it so that when those inputs/outputs have system-value semantics, we generate a global variable declaration with the appropriate `gl_*` name (leaving the type the same for now). Later, when emitting code, we just skip emitting declarations for declarations with mangled names that start with `gl_*`.
A more complete implementation will be needed later on, which handles cases where the translation requires types to be changed (so that conversion code needs to be inserted).
Diffstat (limited to 'source/slang/syntax.cpp')
0 files changed, 0 insertions, 0 deletions
