Lines Matching defs:fields
53 struct glsl_struct_field *fields = rzalloc_array(nir, struct glsl_struct_field, 2);
54 fields[0].type = glsl_array_type(glsl_uint_type(), 1, 0);
55 fields[0].name = ralloc_asprintf(nir, "draw_mode_is_indexed");
56 fields[0].offset = offsetof(struct zink_gfx_push_constant, draw_mode_is_indexed);
57 fields[1].type = glsl_array_type(glsl_uint_type(), 1, 0);
58 fields[1].name = ralloc_asprintf(nir, "draw_id");
59 fields[1].offset = offsetof(struct zink_gfx_push_constant, draw_id);
61 glsl_struct_type(fields, 2, "struct", false), "vs_pushconst");
70 struct glsl_struct_field *fields = rzalloc_size(nir, 1 * sizeof(struct glsl_struct_field));
71 fields[0].type = glsl_array_type(glsl_uint_type(), 1, 0);
72 fields[0].name = ralloc_asprintf(nir, "work_dim");
73 fields[0].offset = 0;
75 glsl_struct_type(fields, 1, "struct", false), "cs_pushconst");
1193 struct glsl_struct_field *fields = rzalloc_array(shader, struct glsl_struct_field, 2);
1194 fields[0].name = ralloc_strdup(shader, "base");
1195 fields[1].name = ralloc_strdup(shader, "unsized");
1208 fields[0].type = type;
1209 fields[1].type = unsized;
1210 var->type = glsl_array_type(glsl_struct_type(fields, glsl_get_length(bare_type), "struct", false), array_size, 0);
1537 struct glsl_struct_field *fields = rzalloc_array(nir, struct glsl_struct_field, nmembers * 2);
1541 fields[i] = *f;
1542 xfb_offset += glsl_get_component_slots(fields[i].type) * 4;
1547 fields[i].type = rewrite_64bit_type(nir, f->type, var);
1549 return glsl_struct_type(fields, nmembers, glsl_get_type_name(type), glsl_struct_type_is_packed(type));
1582 struct glsl_struct_field fields[8] = {0};
1586 assert(i < ARRAY_SIZE(fields));
1587 fields[i].name = "";
1588 fields[i].offset = i * 16;
1589 fields[i].type = glsl_vector_type(base_type, MIN2(4, remaining));
1593 return glsl_struct_type(fields, nfields, buf, true);
2258 struct glsl_struct_field *fields = rzalloc_array(shader, struct glsl_struct_field, 2);
2259 fields[0].name = ralloc_strdup(shader, "base");
2260 fields[1].name = ralloc_strdup(shader, "unsized");
2263 fields[0].type = glsl_array_type(glsl_uint_type(), max_uniform_size * 4, 4);
2265 glsl_array_type(glsl_interface_type(fields, 1, GLSL_INTERFACE_PACKING_STD430, false, "struct"), 1, 0),
2275 fields[0].type = glsl_array_type(glsl_uint_type(), max_ubo_size * 4, 4);
2282 glsl_array_type(glsl_struct_type(fields, 1, "struct", false), num_ubos, 0),
2297 fields[0].type = ssbo_type;
2298 fields[1].type = max_ssbo_size ? unsized : NULL;
2301 glsl_array_type(glsl_struct_type(fields, field_count, "struct", false), num_ssbos, 0),
3376 struct glsl_struct_field *fields = rzalloc_array(nir, struct glsl_struct_field, 3);
3378 fields[0].type = glsl_array_type(glsl_uint_type(), offsetof(struct zink_gfx_push_constant, default_inner_level) / 4, 0);
3379 fields[0].name = ralloc_asprintf(nir, "padding");
3380 fields[0].offset = 0;
3381 fields[1].type = glsl_array_type(glsl_uint_type(), 2, 0);
3382 fields[1].name = ralloc_asprintf(nir, "gl_TessLevelInner");
3383 fields[1].offset = offsetof(struct zink_gfx_push_constant, default_inner_level);
3384 fields[2].type = glsl_array_type(glsl_uint_type(), 4, 0);
3385 fields[2].name = ralloc_asprintf(nir, "gl_TessLevelOuter");
3386 fields[2].offset = offsetof(struct zink_gfx_push_constant, default_outer_level);
3388 glsl_struct_type(fields, 3, "struct", false), "pushconst");