mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-10 19:17:56 -05:00
spirv: Implement rescaling patching
This commit is contained in:
committed by
Fernando Sahmkow
parent
01379c5e3c
commit
656adee630
@ -191,4 +191,13 @@ struct Info {
|
||||
ImageDescriptors image_descriptors;
|
||||
};
|
||||
|
||||
template <typename Descriptors>
|
||||
u32 NumDescriptors(const Descriptors& descriptors) {
|
||||
u32 num{};
|
||||
for (const auto& desc : descriptors) {
|
||||
num += desc.count;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
||||
} // namespace Shader
|
||||
|
Reference in New Issue
Block a user