diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-04-04 07:18:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-04 07:18:33 -0700 |
| commit | 7a8ed51873743e6497db28b5a756e080491d2fa3 (patch) | |
| tree | b4f2b7e96c5cb992308500a9ac769af0309402c7 /tools/render-test | |
| parent | 3115ba7a3640937df01ecf60f7ff55f71a3ab7c2 (diff) | |
Pass AST interpolation modifiers through to codegen. (#475)
This is a short-term fix, because we (1) don't have an IR-level representation of interpolation qualifiers, and (2) can't introduce one until *after* the IR-level type system is introduced (to be able to handle `struct` fields).
The approach here is to find the AST-level declaration, either from layout information (in the case of an ordinary variable or function parameter), or from struct field information (because structs are being output from the AST form anyway).
I've included a single end-to-end rendering test to confirm that we handle the `nointerpolation` modifier the same as HLSL.
I also added the `noperspective` modifier, which seemed to be missing from our implementation.
Diffstat (limited to 'tools/render-test')
0 files changed, 0 insertions, 0 deletions
