summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader/compiler_settings.cpp
blob: cddcbd4f0e63f887bbb090bcd90b29cdc1ae77d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2019 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#include "video_core/shader/compiler_settings.h"

namespace VideoCommon::Shader {

std::string CompileDepthAsString(const CompileDepth cd) {
    switch (cd) {
    case CompileDepth::BruteForce:
        return "Brute Force Compile";
    case CompileDepth::FlowStack:
        return "Simple Flow Stack Mode";
    case CompileDepth::NoFlowStack:
        return "Remove Flow Stack";
    case CompileDepth::DecompileBackwards:
        return "Decompile Backward Jumps";
    case CompileDepth::FullDecompile:
        return "Full Decompilation";
    default:
        return "Unknown Compiler Process";
    }
}

} // namespace VideoCommon::Shader