diff options
| author | 2021-04-19 01:03:38 +0200 | |
|---|---|---|
| committer | 2021-07-22 21:51:29 -0400 | |
| commit | b541f5e5e333a8ec8c3569e02d67e59ad14217c2 (patch) | |
| tree | 5b19bdd92d74ce8e32be75cfa2c27a4612a663de /src/shader_recompiler/ir_opt/texture_pass.cpp | |
| parent | shader: Implement delegation of Exit to dispatcher on CFG (diff) | |
| download | yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.gz yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.xz yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.zip | |
shader: Implement VertexA stage
Diffstat (limited to 'src/shader_recompiler/ir_opt/texture_pass.cpp')
| -rw-r--r-- | src/shader_recompiler/ir_opt/texture_pass.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/shader_recompiler/ir_opt/texture_pass.cpp b/src/shader_recompiler/ir_opt/texture_pass.cpp index cfa6b34b9..2b38bcf42 100644 --- a/src/shader_recompiler/ir_opt/texture_pass.cpp +++ b/src/shader_recompiler/ir_opt/texture_pass.cpp | |||
| @@ -426,4 +426,25 @@ void TexturePass(Environment& env, IR::Program& program) { | |||
| 426 | } | 426 | } |
| 427 | } | 427 | } |
| 428 | 428 | ||
| 429 | void JoinTextureInfo(Info& base, Info& source) { | ||
| 430 | Descriptors descriptors{ | ||
| 431 | base.texture_buffer_descriptors, | ||
| 432 | base.image_buffer_descriptors, | ||
| 433 | base.texture_descriptors, | ||
| 434 | base.image_descriptors, | ||
| 435 | }; | ||
| 436 | for (auto& desc : source.texture_buffer_descriptors) { | ||
| 437 | descriptors.Add(desc); | ||
| 438 | } | ||
| 439 | for (auto& desc : source.image_buffer_descriptors) { | ||
| 440 | descriptors.Add(desc); | ||
| 441 | } | ||
| 442 | for (auto& desc : source.texture_descriptors) { | ||
| 443 | descriptors.Add(desc); | ||
| 444 | } | ||
| 445 | for (auto& desc : source.image_descriptors) { | ||
| 446 | descriptors.Add(desc); | ||
| 447 | } | ||
| 448 | } | ||
| 449 | |||
| 429 | } // namespace Shader::Optimization | 450 | } // namespace Shader::Optimization |