}
default_block.sort_uniforms();
- if(!default_block.uniforms.empty())
- {
- const ReflectData::UniformInfo &uni = *default_block.uniforms.back();
- default_block.data_size = uni.location*16+uni.array_size*get_type_size(uni.type);
- }
default_block.update_layout_hash();
rd.update_layout_hash();
}
collect_attributes(static_cast<const SpirVModule &>(mod));
}
+ for(ReflectData::UniformBlockInfo &b: reflect_data.uniform_blocks)
+ if(!b.data_size && !b.uniforms.empty())
+ {
+ const ReflectData::UniformInfo &uni = *b.uniforms.back();
+ b.data_size = uni.location*16+uni.array_size*get_type_size(uni.type);
+ }
+
for(const ReflectData::UniformInfo &u: reflect_data.uniforms)
require_type(u.type);
for(const ReflectData::AttributeInfo &a: reflect_data.attributes)