Akio Gaule 77ee544a28 Add support for depth SubpassInputs (for Metal) (#91) há 10 meses atrás
..
Advanced c274dff1a2 Integrate a test for option rank cost há 2 anos atrás
Emission 77ee544a28 Add support for depth SubpassInputs (for Metal) (#91) há 10 meses atrás
Samples 432595f328 Removed redundant tests and relocated some files where they should be. (#27) há 3 anos atrás
Semantic a02b39983f Actually this test now no longer fails since the type resolution has gained in power. To fallback on an exhibition of the problem again it's enough to just mention the call to floor which is unregistered as long as azslc is concerned. há 2 anos atrás
Syntax 727f031231 Updating to hlsl6 6 (#61) há 2 anos atrás
README.md 87b56737a6 Initial commit and copy of 064c645 há 4 anos atrás
builder.py 02082bf1c8 Class inheritance (sign offs rebase) (#59) há 2 anos atrás
clr.py 87b56737a6 Initial commit and copy of 064c645 há 4 anos atrás
launch_tests.bat 87b56737a6 Initial commit and copy of 064c645 há 4 anos atrás
launch_tests.sh bafacbe822 Minor fixes before open source publication há 4 anos atrás
launch_tests_debug.bat 87b56737a6 Initial commit and copy of 064c645 há 4 anos atrás
launch_tests_debug.sh bafacbe822 Minor fixes before open source publication há 4 anos atrás
launch_tests_linux.sh bafacbe822 Minor fixes before open source publication há 4 anos atrás
testapp.py 219aa9632a Release 1.8.19 (#87) há 1 ano atrás
testfuncs.py 727f031231 Updating to hlsl6 6 (#61) há 2 anos atrás
testhelper.py 091748bc8d fixup of a sad bug in the emission tester python, it would accept as false positive tests with swapped lines. (meaning if two lines A; B; are emitted, and the test.txt contains "B ; A ;" it would still be green). The problem was due to slicing the input string using relative values instead of absolute. Fixed using += operator. Debugging printf still present for history. há 2 anos atrás

README.md

License

Because of the nature of the tests, not all test shader code can have inlined comments. Please mind that all shader source code found in this directory and its sub-folders is covered by the following license:

Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.

SPDX-License-Identifier: Apache-2.0 OR MIT

Using the tests

The tester program uses convention over configuration. So you don't have to maintain a list of tests and their expected behavior, the test suite will test all shader code in all folders and determine the expected results based on test and directory naming conventions. If it is in a path with "Syntax" in the name, then it's checked for syntax only. If it is in a path with "Semantic" in the name, then it's checked for semantic only. If it is in a path with "AsError" in the name, then it's expecting a refusal (ret code != 0). Tests as errors are important, because they explicitly show illegal use cases. If it is in the "Advanced" folder, only .py files will be considered just add your files on the good folder.

To run all tests on windows: launch_tests.bat

To run only tests from a particular file: launch_tests.bat Advanced/srg-strip-unused.py