spirv: Implement rescaling patching
This commit is contained in:
parent
01379c5e3c
commit
656adee630
8 changed files with 86 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue