diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-07-26 03:26:23 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-16 22:11:28 +0100 |
commit | 656adee630cb1de738ed4dc6cf1cbc35af40f64f (patch) | |
tree | 5c5ec069a136655476180ce03fc24ccd911b3871 /src/shader_recompiler/backend/spirv/emit_spirv.h | |
parent | shader/rescaling_pass: Patch more instructions (diff) | |
download | yuzu-656adee630cb1de738ed4dc6cf1cbc35af40f64f.tar yuzu-656adee630cb1de738ed4dc6cf1cbc35af40f64f.tar.gz yuzu-656adee630cb1de738ed4dc6cf1cbc35af40f64f.tar.bz2 yuzu-656adee630cb1de738ed4dc6cf1cbc35af40f64f.tar.lz yuzu-656adee630cb1de738ed4dc6cf1cbc35af40f64f.tar.xz yuzu-656adee630cb1de738ed4dc6cf1cbc35af40f64f.tar.zst yuzu-656adee630cb1de738ed4dc6cf1cbc35af40f64f.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv/emit_spirv.h')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv.h b/src/shader_recompiler/backend/spirv/emit_spirv.h index db0c935fe..7b0d8d980 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv.h +++ b/src/shader_recompiler/backend/spirv/emit_spirv.h @@ -20,8 +20,11 @@ namespace Shader::Backend::SPIRV { IR::Program& program, Bindings& bindings); [[nodiscard]] inline std::vector<u32> EmitSPIRV(const Profile& profile, IR::Program& program) { + RuntimeInfo runtime_info{}; + runtime_info.num_textures = Shader::NumDescriptors(program.info.texture_descriptors); + Bindings binding; - return EmitSPIRV(profile, {}, program, binding); + return EmitSPIRV(profile, runtime_info, program, binding); } } // namespace Shader::Backend::SPIRV |