summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2018-02-16 12:00:20 -0800
committerGitHub <noreply@github.com>2018-02-16 12:00:20 -0800
commit8c872597540b2287bc18d5723c7ae3b8832246b8 (patch)
treea40698aad0732e6078bf81229df6b1a54b1fd388 /source/slang/syntax.cpp
parent1b93da040ef00836438437e998c1c9584e3fd4ac (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