Lines Matching defs:subs
73 struct gl_subroutine_function *subs;
86 subs = rzalloc_array(prog, struct gl_subroutine_function,
88 glprog->sh.SubroutineFunctions = subs;
91 subs[j].name.string = ralloc_strdup(prog, blob_read_string (metadata));
92 resource_name_updated(&subs[j].name);
93 subs[j].index = (int) blob_read_uint32(metadata);
94 subs[j].num_compat_types = (int) blob_read_uint32(metadata);
96 subs[j].types = rzalloc_array(prog, const struct glsl_type *,
97 subs[j].num_compat_types);
98 for (int k = 0; k < subs[j].num_compat_types; k++) {
99 subs[j].types[k] = decode_type_from_blob(metadata);