diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-07-12 13:40:30 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-07-12 13:40:30 -0700 |
| commit | aca34e771d0ad76d396415e45c5f3cbf294709c9 (patch) | |
| tree | 07b4413d679e52cc56d48fb21b11d66b4e37b26b /source/slang/parser.cpp | |
| parent | b65861fc32a54d28b3fbbaf0d31bb1d71889f570 (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/parser.cpp')
0 files changed, 0 insertions, 0 deletions
