diff options
| author | 2021-04-17 12:51:43 +0200 | |
|---|---|---|
| committer | 2021-07-22 21:51:28 -0400 | |
| commit | 080857b60e78836901cf6e9601f48613812fcd04 (patch) | |
| tree | ef466d23ba86a14f01abaa7b01acd7a7d6b24aa7 /src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp | |
| parent | shader: Implement fine derivates constant propagation (diff) | |
| download | yuzu-080857b60e78836901cf6e9601f48613812fcd04.tar.gz yuzu-080857b60e78836901cf6e9601f48613812fcd04.tar.xz yuzu-080857b60e78836901cf6e9601f48613812fcd04.zip | |
shader: Add coarse derivatives
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_warp.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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) { | |||
| 191 | return ctx.OpDPdyFine(ctx.F32[1], op_a); | 191 | return ctx.OpDPdyFine(ctx.F32[1], op_a); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | Id EmitDPdxCoarse(EmitContext& ctx, Id op_a) { | ||
| 195 | return ctx.OpDPdxCoarse(ctx.F32[1], op_a); | ||
| 196 | } | ||
| 197 | |||
| 198 | Id EmitDPdyCoarse(EmitContext& ctx, Id op_a) { | ||
| 199 | return ctx.OpDPdyCoarse(ctx.F32[1], op_a); | ||
| 200 | } | ||
| 201 | |||
| 194 | } // namespace Shader::Backend::SPIRV | 202 | } // namespace Shader::Backend::SPIRV |