https://github.com/shader-slang/slang
Revision d5d03d1510f45f5ed7864031244713d87fc82b87 authored by ArielG-NV on 02 July 2024, 17:35:49 UTC, committed by GitHub on 02 July 2024, 17:35:49 UTC
* Fix invalid capabilities being allowed

fixes: #4506
fixes: #4508

1. As per #4506, no longer allow invalid `[require(...)]`
2. As per #4508, no longer allow mismatch between `case` and `require` of a calling function
3. Fixes incorrect hlsl.meta capabilities
4. Added a ref to the parent function/decl for when erroring with capabilities to help debug meta.slang files for when weird source locations are generated.

* rename vars and copy lambdas by value

* fix some more capabilities

* incorrect capabilities on a texture test

* push capabilities fix

note: seperated capabilities for glsl,spirv,cuda,hlsl since not all functions support all targets (source of capability error)

* fix cmd line arg by using `xslang` to passthrough to slangc

* let auto-infer run for certain capabilities to reduce simple mistakes

---------

Co-authored-by: Jay Kwak <82421531+jkwak-work@users.noreply.github.com>
1 parent bd01bd3
History
Tip revision: d5d03d1510f45f5ed7864031244713d87fc82b87 authored by ArielG-NV on 02 July 2024, 17:35:49 UTC
Emit errors when invalid capabilities are used (#4510)
Tip revision: d5d03d1
File Mode Size
.github
build
cmake
deps
docs
examples
external
extras
prelude
source
tests
tools
.editorconfig -rw-r--r-- 984 bytes
.gitattributes -rw-r--r-- 95 bytes
.gitignore -rw-r--r-- 1.6 KB
.gitmodules -rw-r--r-- 1.3 KB
.mailmap -rw-r--r-- 84 bytes
CMakeLists.txt -rw-r--r-- 23.7 KB
CMakePresets.json -rw-r--r-- 4.0 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
CONTRIBUTION.md -rw-r--r-- 10.2 KB
LICENSE -rw-r--r-- 1.1 KB
README.md -rw-r--r-- 8.5 KB
github_build.sh -rw-r--r-- 1.6 KB
github_macos_build.sh -rw-r--r-- 1.3 KB
make-slang-tag-version.bat -rw-r--r-- 210 bytes
premake.bat -rw-r--r-- 120 bytes
premake5.lua -rw-r--r-- 66.6 KB
slang-com-helper.h -rw-r--r-- 4.9 KB
slang-com-ptr.h -rw-r--r-- 5.0 KB
slang-gfx.h -rw-r--r-- 88.8 KB
slang-tag-version.h -rw-r--r-- 36 bytes
slang.h -rw-r--r-- 211.5 KB
slang.sln -rw-r--r-- 51.5 KB
test.bat -rw-r--r-- 1.4 KB
test.ps1 -rw-r--r-- 154 bytes

README.md

back to top