compiler_settings.h 580 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. #pragma once
  5. #include "video_core/engines/shader_bytecode.h"
  6. namespace VideoCommon::Shader {
  7. enum class CompileDepth : u32 {
  8. BruteForce = 0,
  9. FlowStack = 1,
  10. NoFlowStack = 2,
  11. DecompileBackwards = 3,
  12. FullDecompile = 4,
  13. };
  14. std::string CompileDepthAsString(CompileDepth cd);
  15. struct CompilerSettings {
  16. CompileDepth depth{CompileDepth::NoFlowStack};
  17. bool disable_else_derivation{true};
  18. };
  19. } // namespace VideoCommon::Shader