reflect_data.uniform_blocks.emplace_back();
vector<vector<string> > block_uniform_names(1);
- unsigned n_descriptor_sets = 0;
for(const SpirVModule::Variable &v: mod.get_variables())
{
if((v.storage==SpirVModule::UNIFORM || v.storage==SpirVModule::PUSH_CONSTANT) && v.struct_type)
info.bind_point = v.binding | (v.descriptor_set<<20);
else
info.bind_point = ReflectData::DEFAULT_BLOCK;
- n_descriptor_sets = max(n_descriptor_sets, v.descriptor_set+1);
+ reflect_data.n_descriptor_sets = max(reflect_data.n_descriptor_sets, v.descriptor_set+1);
}
string prefix;
info.location = v.location;
if(v.binding>=0)
info.binding = v.binding | (v.descriptor_set<<20);
- n_descriptor_sets = max(n_descriptor_sets, v.descriptor_set+1);
+ reflect_data.n_descriptor_sets = max(reflect_data.n_descriptor_sets, v.descriptor_set+1);
info.array_size = max(v.array_size, 1U);
info.type = v.type;
}
block.update_layout_hash();
}
- reflect_data.n_descriptor_sets = n_descriptor_sets;
reflect_data.update_layout_hash();
}
add("blend", &Loader::blend);
add("blend", &Loader::blend_factors);
add("face_cull", &RenderMethod::face_cull);
- add("shader", &Loader::shader);
+ add("shader", &Loader::shader);
add("image_based_lighting", &RenderMethod::image_based_lighting);
add("instancing", &RenderMethod::instancing);
add("material", &Loader::material_inline);