if(layout_ql)
{
- auto i = find_member(*layout_ql, string("binding"), &Layout::Qualifier::name);
- if(i!=layout_ql->end())
- writer.write_op_decorate(block_id, DECO_BINDING, i->value);
+ for(const Layout::Qualifier &q: *layout_ql)
+ {
+ if(q.name=="set")
+ writer.write_op_decorate(block_id, DECO_DESCRIPTOR_SET, q.value);
+ else if(q.name=="binding")
+ writer.write_op_decorate(block_id, DECO_BINDING, q.value);
+ }
}
}