diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2021-04-17 12:51:43 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:28 +0200 |
commit | 080857b60e78836901cf6e9601f48613812fcd04 (patch) | |
tree | ef466d23ba86a14f01abaa7b01acd7a7d6b24aa7 /src/shader_recompiler/backend/spirv | |
parent | shader: Implement fine derivates constant propagation (diff) | |
download | yuzu-080857b60e78836901cf6e9601f48613812fcd04.tar yuzu-080857b60e78836901cf6e9601f48613812fcd04.tar.gz yuzu-080857b60e78836901cf6e9601f48613812fcd04.tar.bz2 yuzu-080857b60e78836901cf6e9601f48613812fcd04.tar.lz yuzu-080857b60e78836901cf6e9601f48613812fcd04.tar.xz yuzu-080857b60e78836901cf6e9601f48613812fcd04.tar.zst yuzu-080857b60e78836901cf6e9601f48613812fcd04.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.h | 4 | ||||
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.h b/src/shader_recompiler/backend/spirv/emit_spirv.h index dec4f434a..67d06faa0 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.h +++ b/src/shader_recompiler/backend/spirv/emit_spirv.h @@ -533,4 +533,8 @@ Id EmitDPdxFine(EmitContext& ctx, Id op_a); Id EmitDPdyFine(EmitContext& ctx, Id op_a); +Id EmitDPdxCoarse(EmitContext& ctx, Id op_a); + +Id EmitDPdyCoarse(EmitContext& ctx, Id op_a); + } // namespace Shader::Backend::SPIRV diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp index d53412204..a255f9ba7 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp @@ -191,4 +191,12 @@ Id EmitDPdyFine(EmitContext& ctx, Id op_a) { return ctx.OpDPdyFine(ctx.F32[1], op_a); } +Id EmitDPdxCoarse(EmitContext& ctx, Id op_a) { + return ctx.OpDPdxCoarse(ctx.F32[1], op_a); +} + +Id EmitDPdyCoarse(EmitContext& ctx, Id op_a) { + return ctx.OpDPdyCoarse(ctx.F32[1], op_a); +} + } // namespace Shader::Backend::SPIRV |