diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-17 08:19:54 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:28 +0200 |
commit | c9e4609d87570fc407014cd4b34a60611ad63fac (patch) | |
tree | b0249d79349ff6e3b54948755750f61dea8fd0bf /src/shader_recompiler/backend/spirv/emit_context.h | |
parent | spirv: Use explicit lods outside of fragment shaders (diff) | |
download | yuzu-c9e4609d87570fc407014cd4b34a60611ad63fac.tar yuzu-c9e4609d87570fc407014cd4b34a60611ad63fac.tar.gz yuzu-c9e4609d87570fc407014cd4b34a60611ad63fac.tar.bz2 yuzu-c9e4609d87570fc407014cd4b34a60611ad63fac.tar.lz yuzu-c9e4609d87570fc407014cd4b34a60611ad63fac.tar.xz yuzu-c9e4609d87570fc407014cd4b34a60611ad63fac.tar.zst yuzu-c9e4609d87570fc407014cd4b34a60611ad63fac.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_context.h')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_context.h b/src/shader_recompiler/backend/spirv/emit_context.h index 9db2b0c94..7567fdcac 100644 --- a/src/shader_recompiler/backend/spirv/emit_context.h +++ b/src/shader_recompiler/backend/spirv/emit_context.h @@ -101,6 +101,10 @@ public: return Constant(U32[1], value); } + Id Const(f32 value) { + return Constant(F32[1], value); + } + Id Const(u32 element_1, u32 element_2) { return ConstantComposite(U32[2], Const(element_1), Const(element_2)); } |