diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-03-08 04:01:22 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:23 +0200 |
commit | 7d6ba5b9840a4ba00a9b0f207c1c119d60dcf8b7 (patch) | |
tree | d2e7976c767b5b292f0a0318783869045ff0fda6 /src/shader_recompiler/backend/spirv/emit_spirv_select.cpp | |
parent | shader: Implement SHF (diff) | |
download | yuzu-7d6ba5b9840a4ba00a9b0f207c1c119d60dcf8b7.tar yuzu-7d6ba5b9840a4ba00a9b0f207c1c119d60dcf8b7.tar.gz yuzu-7d6ba5b9840a4ba00a9b0f207c1c119d60dcf8b7.tar.bz2 yuzu-7d6ba5b9840a4ba00a9b0f207c1c119d60dcf8b7.tar.lz yuzu-7d6ba5b9840a4ba00a9b0f207c1c119d60dcf8b7.tar.xz yuzu-7d6ba5b9840a4ba00a9b0f207c1c119d60dcf8b7.tar.zst yuzu-7d6ba5b9840a4ba00a9b0f207c1c119d60dcf8b7.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_select.cpp')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_select.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_select.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_select.cpp index 21cca4455..0ae127d50 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_select.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_select.cpp @@ -6,6 +6,10 @@ namespace Shader::Backend::SPIRV { +Id EmitSelectU1(EmitContext& ctx, Id cond, Id true_value, Id false_value) { + return ctx.OpSelect(ctx.U1, cond, true_value, false_value); +} + Id EmitSelectU8([[maybe_unused]] EmitContext& ctx, [[maybe_unused]] Id cond, [[maybe_unused]] Id true_value, [[maybe_unused]] Id false_value) { throw NotImplementedException("SPIR-V Instruction"); |