diff options
author | FengChen <vonchenplus@gmail.com> | 2022-09-01 22:05:11 +0800 |
---|---|---|
committer | FengChen <vonchenplus@gmail.com> | 2022-09-20 11:55:43 +0800 |
commit | 9a95c7fa14bdfc14aacea92896c8ae8533918fe8 (patch) | |
tree | 3beb2289136a59134195d35e37d4b56b294a3081 /src/shader_recompiler/frontend/ir/ir_emitter.cpp | |
parent | cbc2761f113cee43c0d8fe4a6de4401cb743c153 (diff) |
video_core: Generate mipmap texture by drawing
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 11086ed8c2..de1ce90a31 100644 --- a/src/shader_recompiler/frontend/ir/ir_emitter.cpp +++ b/src/shader_recompiler/frontend/ir/ir_emitter.cpp @@ -378,6 +378,14 @@ F32 IREmitter::ResolutionDownFactor() { return Inst<F32>(Opcode::ResolutionDownFactor); } +F32 IREmitter::RenderAreaWidth() { + return F32(CompositeExtract(Inst<Value>(Opcode::RenderArea), 0)); +} + +F32 IREmitter::RenderAreaHeight() { + return F32(CompositeExtract(Inst<Value>(Opcode::RenderArea), 1)); +} + U32 IREmitter::LaneId() { return Inst<U32>(Opcode::LaneId); } |