summaryrefslogtreecommitdiffstats
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-12 13:40:30 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-12 13:40:30 -0700
commitaca34e771d0ad76d396415e45c5f3cbf294709c9 (patch)
tree07b4413d679e52cc56d48fb21b11d66b4e37b26b /source/slang/check.cpp
parentb65861fc32a54d28b3fbbaf0d31bb1d71889f570 (diff)
Don't emit interpolation modifiers on struct fields when outputting GLSL
HLSL (and thus Slang) commonly puts interpolation modifiers like `sample` on the fields of `struct` types used as stage input/output, while GLSL only allows them on global-scope `in` and `out` variables (or ones in blocks). This change emits a really hacky filtering step to skip over certain modifiers when emitting a declaration. This lets us skip interpolation-mode modifiers when outputting a struct field to GLSL. Note: this probably gets the `in` or `out` block case wrong...
Diffstat (limited to 'source/slang/check.cpp')
0 files changed, 0 insertions, 0 deletions