https://github.com/shader-slang/slang
Revision a549362ba7011562f123b52c35c875c2c02f4f40 authored by Yong He on 16 March 2018, 18:28:04 UTC, committed by Tim Foley on 16 March 2018, 18:28:04 UTC
This commit contains two small bug fixes:

1. In `specializeProgramLayout`, we cannot assume the resourceInfo entries in a varLayout and its corresponding type layout has the same order. Should use `FindResourceLayout`.

2. When generating ir for a switch statement, make sure to remove the breakLabel from the shared context when done. For some reason if a switch statement is being lowered twice, the Dictionary::Add method will complain the statement key already exists.
1 parent 4c23ba2
History
Tip revision: a549362ba7011562f123b52c35c875c2c02f4f40 authored by Yong He on 16 March 2018, 18:28:04 UTC
Small bug fixes. (#445)
Tip revision: a549362
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.0 KB
slang.sln -rw-r--r-- 9.1 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top