compiler_settings.cpp 769 B

1234567891011121314151617181920212223242526
  1. // Copyright 2019 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "video_core/shader/compiler_settings.h"
  5. namespace VideoCommon::Shader {
  6. std::string CompileDepthAsString(const CompileDepth cd) {
  7. switch (cd) {
  8. case CompileDepth::BruteForce:
  9. return "Brute Force Compile";
  10. case CompileDepth::FlowStack:
  11. return "Simple Flow Stack Mode";
  12. case CompileDepth::NoFlowStack:
  13. return "Remove Flow Stack";
  14. case CompileDepth::DecompileBackwards:
  15. return "Decompile Backward Jumps";
  16. case CompileDepth::FullDecompile:
  17. return "Full Decompilation";
  18. default:
  19. return "Unknown Compiler Process";
  20. }
  21. }
  22. } // namespace VideoCommon::Shader