diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-08-16 16:25:02 -0400 |
|---|---|---|
| committer | FernandoS27 <fsahmkow27@gmail.com> | 2019-10-04 18:52:50 -0400 |
| commit | 47e4f6a52c5eb34916e2c1f4c876e6e8624e3840 (patch) | |
| tree | 60ca95508197ceb868b004791caf81a042b22842 /src/video_core/shader/compiler_settings.h | |
| parent | 38fc995f6cc2c2af29abc976ddb45b72873b2cc4 (diff) | |
Shader_Ir: Refactor Decompilation process and allow multiple decompilation modes.
Diffstat (limited to 'src/video_core/shader/compiler_settings.h')
| -rw-r--r-- | src/video_core/shader/compiler_settings.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/video_core/shader/compiler_settings.h b/src/video_core/shader/compiler_settings.h new file mode 100644 index 000000000..e1fb5bc3a --- /dev/null +++ b/src/video_core/shader/compiler_settings.h @@ -0,0 +1,25 @@ +// Copyright 2019 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "video_core/engines/shader_bytecode.h" + +namespace VideoCommon::Shader { + +enum class CompileDepth : u32 { + BruteForce = 0, + FlowStack = 1, + NoFlowStack = 2, + DecompileBackwards = 3, + FullDecompile = 4, +}; + +std::string CompileDepthAsString(CompileDepth cd); + +struct CompilerSettings { + CompileDepth depth; +}; + +} // namespace VideoCommon::Shader |
