VariantsExample.azsli 915 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. /*
  9. * Demonstrates one possible generated header which works with the shader code
  10. * generated from Variants.azsl
  11. *
  12. * Not all options need be defined.
  13. * Run `azslc.exe Variants.azsl` for reference for the generated code and
  14. * run `azslc.exe Variants.azsl --variants` for a list of options
  15. */
  16. #define Quality_OPTION_DEF QualityT::Low
  17. #define Color_OPTION_DEF Green
  18. #define UseGI_OPTION_DEF false
  19. #define IntOption_OPTION_DEF 100
  20. #define FloatOption_OPTION_DEF 2.0
  21. #define DoubleOption_OPTION_DEF 4.0
  22. #define HalfOption_OPTION_DEF 1.0
  23. #define UserDefinedOption_OPTION_DEF { 16 , true }