| 94 | } |
| 95 | |
| 96 | inline void read_resource_vec_size(const spirv_cross::Compiler &compiler, |
| 97 | const spirv_cross::Resource &resource, |
| 98 | ShaderResource & shader_resource, |
| 99 | const ShaderVariant & variant) |
| 100 | { |
| 101 | const auto &spirv_type = compiler.get_type_from_variable(resource.id); |
| 102 | |
| 103 | shader_resource.vec_size = spirv_type.vecsize; |
| 104 | shader_resource.columns = spirv_type.columns; |
| 105 | } |
| 106 | |
| 107 | inline void read_resource_array_size(const spirv_cross::Compiler &compiler, |
| 108 | const spirv_cross::Resource &resource, |