diff options
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); | |||
| 533 | 533 | ||
| 534 | Id EmitDPdyFine(EmitContext& ctx, Id op_a); | 534 | Id EmitDPdyFine(EmitContext& ctx, Id op_a); |
| 535 | 535 | ||
| 536 | Id EmitDPdxCoarse(EmitContext& ctx, Id op_a); | ||
| 537 | |||
| 538 | Id EmitDPdyCoarse(EmitContext& ctx, Id op_a); | ||
| 539 | |||
| 536 | } // namespace Shader::Backend::SPIRV | 540 | } // 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) { | |||
| 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 |