diff options
author | Matías Locatti <42481638+goldenx86@users.noreply.github.com> | 2021-12-28 21:35:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-28 21:35:55 +0100 |
commit | 840d5520d2a4fb42f2fb5fd2a7f4110a89929e4f (patch) | |
tree | b13eae98fe8851d39f72681268da7c9a145623c8 /src/shader_recompiler/backend | |
parent | Increase boost requirement to 1.78.0 (diff) | |
download | yuzu-840d5520d2a4fb42f2fb5fd2a7f4110a89929e4f.tar yuzu-840d5520d2a4fb42f2fb5fd2a7f4110a89929e4f.tar.gz yuzu-840d5520d2a4fb42f2fb5fd2a7f4110a89929e4f.tar.bz2 yuzu-840d5520d2a4fb42f2fb5fd2a7f4110a89929e4f.tar.lz yuzu-840d5520d2a4fb42f2fb5fd2a7f4110a89929e4f.tar.xz yuzu-840d5520d2a4fb42f2fb5fd2a7f4110a89929e4f.tar.zst yuzu-840d5520d2a4fb42f2fb5fd2a7f4110a89929e4f.zip |
Diffstat (limited to 'src/shader_recompiler/backend')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.cpp b/src/shader_recompiler/backend/spirv/emit_spirv.cpp index 6ce7ed12a..70c9e6741 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv.cpp @@ -29,12 +29,21 @@ struct FuncTraits<ReturnType_ (*)(Args...)> { template <size_t I> using ArgType = std::tuple_element_t<I, std::tuple<Args...>>; }; + +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4702) // Ignore unreachable code warning +#endif template <auto func, typename... Args> void SetDefinition(EmitContext& ctx, IR::Inst* inst, Args... args) { inst->SetDefinition<Id>(func(ctx, std::forward<Args>(args)...)); } +#ifdef _MSC_VER +#pragma warning(pop) +#endif + template <typename ArgType> ArgType Arg(EmitContext& ctx, const IR::Value& arg) { if constexpr (std::is_same_v<ArgType, Id>) { |