| 105 | } |
| 106 | |
| 107 | inline void read_resource_array_size(const spirv_cross::Compiler &compiler, |
| 108 | const spirv_cross::Resource &resource, |
| 109 | ShaderResource & shader_resource, |
| 110 | const ShaderVariant & variant) |
| 111 | { |
| 112 | const auto &spirv_type = compiler.get_type_from_variable(resource.id); |
| 113 | |
| 114 | shader_resource.array_size = spirv_type.array.size() ? spirv_type.array[0] : 1; |
| 115 | } |
| 116 | |
| 117 | inline void read_resource_size(const spirv_cross::Compiler &compiler, |
| 118 | const spirv_cross::Resource &resource, |
no test coverage detected