diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2021-04-19 01:03:38 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:29 +0200 |
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 yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.gz yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.bz2 yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.lz yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.xz yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.tar.zst yuzu-b541f5e5e333a8ec8c3569e02d67e59ad14217c2.zip |
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) { } } +void JoinTextureInfo(Info& base, Info& source) { + Descriptors descriptors{ + base.texture_buffer_descriptors, + base.image_buffer_descriptors, + base.texture_descriptors, + base.image_descriptors, + }; + for (auto& desc : source.texture_buffer_descriptors) { + descriptors.Add(desc); + } + for (auto& desc : source.image_buffer_descriptors) { + descriptors.Add(desc); + } + for (auto& desc : source.texture_descriptors) { + descriptors.Add(desc); + } + for (auto& desc : source.image_descriptors) { + descriptors.Add(desc); + } +} + } // namespace Shader::Optimization |