https://github.com/shader-slang/slang
Revision 7a8ed51873743e6497db28b5a756e080491d2fa3 authored by Tim Foley on 04 April 2018, 14:18:33 UTC, committed by GitHub on 04 April 2018, 14:18:33 UTC
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.
1 parent 3115ba7
History
Tip revision: 7a8ed51873743e6497db28b5a756e080491d2fa3 authored by Tim Foley on 04 April 2018, 14:18:33 UTC
Pass AST interpolation modifiers through to codegen. (#475)
Tip revision: 7a8ed51
File Mode Size
build
docs
examples
external
source
tests
tools
.gitattributes -rw-r--r-- 95 bytes
.gitignore -rw-r--r-- 398 bytes
.gitmodules -rw-r--r-- 107 bytes
.travis.yml -rw-r--r-- 1.6 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
LICENSE -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 6.3 KB
README.md -rw-r--r-- 4.9 KB
appveyor.yml -rw-r--r-- 3.5 KB
slang.h -rw-r--r-- 42.9 KB
slang.sln -rw-r--r-- 9.1 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top