galibzon a951318e4a Changing inlineConstant to rootConstant keyword work. (#14) hace 3 años
..
Advanced a951318e4a Changing inlineConstant to rootConstant keyword work. (#14) hace 3 años
Emission 5ab0481e6d Replace docopt with CLI11 (#12) hace 3 años
Samples 5e809f4c60 [ATOM-4800] Unclear Error Message for Function Inside Struct (#6) hace 3 años
Semantic d0b8021591 non-initialized static const of any type seems to get a spurious 0 (#13) hace 3 años
Syntax 87b56737a6 Initial commit and copy of 064c645 hace 4 años
README.md 87b56737a6 Initial commit and copy of 064c645 hace 4 años
builder.py 87b56737a6 Initial commit and copy of 064c645 hace 4 años
clr.py 87b56737a6 Initial commit and copy of 064c645 hace 4 años
launch_tests.bat 87b56737a6 Initial commit and copy of 064c645 hace 4 años
launch_tests.sh bafacbe822 Minor fixes before open source publication hace 4 años
launch_tests_debug.bat 87b56737a6 Initial commit and copy of 064c645 hace 4 años
launch_tests_debug.sh bafacbe822 Minor fixes before open source publication hace 4 años
launch_tests_linux.sh bafacbe822 Minor fixes before open source publication hace 4 años
testapp.py 87b56737a6 Initial commit and copy of 064c645 hace 4 años
testfuncs.py 87b56737a6 Initial commit and copy of 064c645 hace 4 años
testhelper.py 5ab0481e6d Replace docopt with CLI11 (#12) hace 3 años

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