diff options
| author | 2021-04-17 11:56:45 +0200 | |
|---|---|---|
| committer | 2021-07-22 21:51:28 -0400 | |
| commit | 04c459fc8d99b41fa8a03c49523599e9bf797f9d (patch) | |
| tree | 199934b3ef85a5affbe9ef115e9b0a1085851b36 /src/shader_recompiler/frontend/ir/ir_emitter.cpp | |
| parent | shader: Implement SR_Y_DIRECTION (diff) | |
| download | yuzu-04c459fc8d99b41fa8a03c49523599e9bf797f9d.tar.gz yuzu-04c459fc8d99b41fa8a03c49523599e9bf797f9d.tar.xz yuzu-04c459fc8d99b41fa8a03c49523599e9bf797f9d.zip | |
shader: Implement fine derivates constant propagation
Diffstat (limited to 'src/shader_recompiler/frontend/ir/ir_emitter.cpp')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/ir_emitter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/ir_emitter.cpp b/src/shader_recompiler/frontend/ir/ir_emitter.cpp index c3e8d0681..845a57b1e 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp | |||
| @@ -1925,4 +1925,12 @@ F32 IREmitter::FSwizzleAdd(const F32& a, const F32& b, const U32& swizzle, FpCon | |||
| 1925 | return Inst<F32>(Opcode::FSwizzleAdd, Flags{control}, a, b, swizzle); | 1925 | return Inst<F32>(Opcode::FSwizzleAdd, Flags{control}, a, b, swizzle); |
| 1926 | } | 1926 | } |
| 1927 | 1927 | ||
| 1928 | F32 IREmitter::DPdxFine(const F32& a) { | ||
| 1929 | return Inst<F32>(Opcode::DPdxFine, a); | ||
| 1930 | } | ||
| 1931 | |||
| 1932 | F32 IREmitter::DPdyFine(const F32& a) { | ||
| 1933 | return Inst<F32>(Opcode::DPdyFine, a); | ||
| 1934 | } | ||
| 1935 | |||
| 1928 | } // namespace Shader::IR | 1936 | } // namespace Shader::IR |