const Structure *struct_type = 0;
unsigned array_size = 0;
int location = -1;
- int descriptor_set = -1;
+ int descriptor_set = 0;
int binding = -1;
BuiltinSemantic builtin = NOT_BUILTIN;
ReflectData::UniformBlockInfo &info = reflect_data.uniform_blocks.back();
info.name = v.struct_type->name;
info.bind_point = v.binding;
+ info.descriptor_set = v.descriptor_set;
info.data_size = v.struct_type->size;
string prefix;
info.tag = v.name;
info.location = v.location;
info.binding = v.binding;
+ info.descriptor_set = v.descriptor_set;
info.array_size = max(v.array_size, 1U);
info.type = v.type;
}
unsigned matrix_stride = 0;
DataType type = VOID;
Tag tag;
+ int descriptor_set = 0;
int binding = -1;
};
{
std::string name;
unsigned data_size = 0;
+ int descriptor_set = 0;
int bind_point = -1;
std::vector<const UniformInfo *> uniforms;
LayoutHash layout_hash = 0;