diff options
Diffstat (limited to 'src/shader_recompiler/shader_info.h')
| -rw-r--r-- | src/shader_recompiler/shader_info.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shader_recompiler/shader_info.h b/src/shader_recompiler/shader_info.h index 4ef4dbd40..9f375c30e 100644 --- a/src/shader_recompiler/shader_info.h +++ b/src/shader_recompiler/shader_info.h | |||
| @@ -172,6 +172,7 @@ struct Info { | |||
| 172 | bool uses_global_memory{}; | 172 | bool uses_global_memory{}; |
| 173 | bool uses_atomic_image_u32{}; | 173 | bool uses_atomic_image_u32{}; |
| 174 | bool uses_shadow_lod{}; | 174 | bool uses_shadow_lod{}; |
| 175 | bool uses_rescaling_uniform{}; | ||
| 175 | 176 | ||
| 176 | IR::Type used_constant_buffer_types{}; | 177 | IR::Type used_constant_buffer_types{}; |
| 177 | IR::Type used_storage_buffer_types{}; | 178 | IR::Type used_storage_buffer_types{}; |
| @@ -190,4 +191,13 @@ struct Info { | |||
| 190 | ImageDescriptors image_descriptors; | 191 | ImageDescriptors image_descriptors; |
| 191 | }; | 192 | }; |
| 192 | 193 | ||
| 194 | template <typename Descriptors> | ||
| 195 | u32 NumDescriptors(const Descriptors& descriptors) { | ||
| 196 | u32 num{}; | ||
| 197 | for (const auto& desc : descriptors) { | ||
| 198 | num += desc.count; | ||
| 199 | } | ||
| 200 | return num; | ||
| 201 | } | ||
| 202 | |||
| 193 | } // namespace Shader | 203 | } // namespace Shader |