build-shaders.py 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. """
  4. Copyright (c) Contributors to the Open 3D Engine Project.
  5. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  6. SPDX-License-Identifier: Apache-2.0 OR MIT
  7. """
  8. import sys
  9. import os
  10. import re
  11. result = 0 # to define for sub-tests
  12. resultFailed = 0 # to define for sub-tests
  13. def doTests(compiler, silent, az3rdParty):
  14. global result
  15. global resultFailed
  16. # Working directory should have been set to this script's directory by the calling parent
  17. # You can get it once doTests() is called, but not during initialization of the module,
  18. # because at that time it will still be set to the working directory of the calling script
  19. workDir = os.getcwd()
  20. azslShaderFileList = ["build-surface.azsl", "simple-surface.azsl", "build-compute.azsl", "../Samples/Enumeration.azsl"]
  21. # Here's one bonus success for you.
  22. # This script is deprecated - it's being moved to the Platform/ folders and will be deleted after merging
  23. result += 1
  24. if __name__ == "__main__":
  25. print ("please call from testapp.py")