diff options
Diffstat (limited to '')
| -rw-r--r-- | src/shader_recompiler/ir_opt/passes.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/shader_recompiler/ir_opt/passes.h b/src/shader_recompiler/ir_opt/passes.h new file mode 100644 index 000000000..2f89b1ea0 --- /dev/null +++ b/src/shader_recompiler/ir_opt/passes.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | // Copyright 2021 yuzu Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include <span> | ||
| 8 | |||
| 9 | #include "shader_recompiler/environment.h" | ||
| 10 | #include "shader_recompiler/frontend/ir/basic_block.h" | ||
| 11 | #include "shader_recompiler/frontend/ir/program.h" | ||
| 12 | |||
| 13 | namespace Shader::Optimization { | ||
| 14 | |||
| 15 | void CollectShaderInfoPass(Environment& env, IR::Program& program); | ||
| 16 | void ConstantPropagationPass(IR::Program& program); | ||
| 17 | void DeadCodeEliminationPass(IR::Program& program); | ||
| 18 | void GlobalMemoryToStorageBufferPass(IR::Program& program); | ||
| 19 | void IdentityRemovalPass(IR::Program& program); | ||
| 20 | void LowerFp16ToFp32(IR::Program& program); | ||
| 21 | void LowerInt64ToInt32(IR::Program& program); | ||
| 22 | void SsaRewritePass(IR::Program& program); | ||
| 23 | void TexturePass(Environment& env, IR::Program& program); | ||
| 24 | void VerificationPass(const IR::Program& program); | ||
| 25 | |||
| 26 | // Dual Vertex | ||
| 27 | void VertexATransformPass(IR::Program& program); | ||
| 28 | void VertexBTransformPass(IR::Program& program); | ||
| 29 | void JoinTextureInfo(Info& base, Info& source); | ||
| 30 | void JoinStorageInfo(Info& base, Info& source); | ||
| 31 | |||
| 32 | } // namespace Shader::Optimization | ||