Lines Matching defs:layout

1146 	 layout (location = 0) in Data gs_fs_output[1];
5952 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
5984 "layout(points) in;\n"
5985 "layout(points, max_vertices = 3) out;\n"
6003 "layout(vertices = 1) out;\n"
6025 "layout(isolines, point_mode) in;\n"
7370 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
7413 "layout(points) in;\n"
7414 "layout(triangle_strip, max_vertices = 4) out;\n"
7454 "layout(vertices = 1) out;\n"
7487 "layout(isolines, point_mode) in;\n"
8093 "layout (xfb_offset = 16) out vec4 vs_fs;\n"
8195 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
8222 "layout(points) in;\n"
8223 "layout(triangle_strip, max_vertices = 4) out;\n"
8248 "layout(vertices = 1) out;\n"
8270 "layout(isolines, point_mode) in;\n"
8748 vs_uni_block->Member("at_first_offset", "layout(offset = 0, align = 8 * basic_size)", 0 /* expected_component */,
8752 vs_uni_block->Member("at_second_offset", "layout(offset = type_size, align = basic_size / 2)",
8756 vs_uni_block->Member("at_third_offset", "layout(align = 2 * type_align)", 0 /* expected_component */,
8760 vs_uni_block->Member("at_fourth_offset", "layout(offset = 3 * type_align + type_size)", 0 /* expected_component */,
8770 vs_uni_block->Member("at_eigth_offset", "layout(align = 8 * basic_size)", 0 /* expected_component */,
8780 vs_si.Uniform("vs_uni_block", "layout (std140, binding = BINDING)", 0, 0, vs_uni_block, 0,
8858 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
8861 " layout(offset = 16) vec4 b;\n"
8862 " layout(align = 64) vec4 a;\n"
8878 " layout(offset = 16) vec4 b;\n"
8879 " layout(align = 64) vec4 a;\n"
8893 "layout(points) in;\n"
8894 "layout(triangle_strip, max_vertices = 4) out;\n"
8897 " layout(offset = 16) vec4 b;\n"
8898 " layout(align = 64) vec4 a;\n"
8924 "layout(vertices = 1) out;\n"
8927 " layout(offset = 16) vec4 b;\n"
8928 " layout(align = 64) vec4 a;\n"
8950 "layout(isolines, point_mode) in;\n"
8953 " layout(offset = 16) vec4 b;\n"
8954 " layout(align = 64) vec4 a;\n"
8969 " layout(offset = 16) vec4 b;\n"
8970 " layout(align = 64) vec4 a;\n"
8982 std::string layout = "";
8992 layout = "layout (QUALIFIER) ";
8994 Utils::replaceToken("QUALIFIER", layout_position, qualifier, layout);
9023 Utils::replaceToken("LAYOUT", position, layout.c_str(), source);
9027 Utils::replaceToken("LAYOUT", position, "layout (std140) ", source);
9161 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
9163 "layout (std140) uniform Block {\n"
9164 " layout (offset = OFFSET) TYPE member;\n"
9195 "layout (std140) uniform Block {\n"
9196 " layout (offset = OFFSET) TYPE member;\n"
9215 "layout(points) in;\n"
9216 "layout(triangle_strip, max_vertices = 4) out;\n"
9240 "layout(points) in;\n"
9241 "layout(triangle_strip, max_vertices = 4) out;\n"
9243 "layout (std140) uniform Block {\n"
9244 " layout (offset = OFFSET) TYPE member;\n"
9274 "layout(vertices = 1) out;\n"
9295 "layout(vertices = 1) out;\n"
9297 "layout (std140) uniform Block {\n"
9298 " layout (offset = OFFSET) TYPE member;\n"
9325 "layout(isolines, point_mode) in;\n"
9338 "layout(isolines, point_mode) in;\n"
9340 "layout (std140) uniform Block {\n"
9341 " layout (offset = OFFSET) TYPE member;\n"
9371 "layout (std140) uniform Block {\n"
9372 " layout (offset = OFFSET) TYPE member;\n"
9620 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
9622 "layout (std140) uniform Block {\n"
9623 " layout (offset = B_OFFSET) B_TYPE b;\n"
9624 " layout (offset = A_OFFSET) A_TYPE a;\n"
9656 "layout (std140) uniform Block {\n"
9657 " layout (offset = B_OFFSET) B_TYPE b;\n"
9658 " layout (offset = A_OFFSET) A_TYPE a;\n"
9678 "layout(points) in;\n"
9679 "layout(triangle_strip, max_vertices = 4) out;\n"
9703 "layout(points) in;\n"
9704 "layout(triangle_strip, max_vertices = 4) out;\n"
9706 "layout (std140) uniform Block {\n"
9707 " layout (offset = B_OFFSET) B_TYPE b;\n"
9708 " layout (offset = A_OFFSET) A_TYPE a;\n"
9739 "layout(vertices = 1) out;\n"
9760 "layout(vertices = 1) out;\n"
9762 "layout (std140) uniform Block {\n"
9763 " layout (offset = B_OFFSET) B_TYPE b;\n"
9764 " layout (offset = A_OFFSET) A_TYPE a;\n"
9792 "layout(isolines, point_mode) in;\n"
9805 "layout(isolines, point_mode) in;\n"
9807 "layout (std140) uniform Block {\n"
9808 " layout (offset = B_OFFSET) B_TYPE b;\n"
9809 " layout (offset = A_OFFSET) A_TYPE a;\n"
9840 "layout (std140) uniform Block {\n"
9841 " layout (offset = B_OFFSET) B_TYPE b;\n"
9842 " layout (offset = A_OFFSET) A_TYPE a;\n"
10115 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
10117 "layout (std140) uniform Block {\n"
10119 " layout (align = ALIGN) TYPE a;\n"
10150 "layout (std140) uniform Block {\n"
10152 " layout (align = ALIGN) TYPE a;\n"
10171 "layout(points) in;\n"
10172 "layout(triangle_strip, max_vertices = 4) out;\n"
10196 "layout(points) in;\n"
10197 "layout(triangle_strip, max_vertices = 4) out;\n"
10199 "layout (std140) uniform Block {\n"
10201 " layout (align = ALIGN) TYPE a;\n"
10231 "layout(vertices = 1) out;\n"
10252 "layout(vertices = 1) out;\n"
10254 "layout (std140) uniform Block {\n"
10256 " layout (align = ALIGN) TYPE a;\n"
10283 "layout(isolines, point_mode) in;\n"
10296 "layout(isolines, point_mode) in;\n"
10298 "layout (std140) uniform Block {\n"
10300 " layout (align = ALIGN) TYPE a;\n"
10330 "layout (std140) uniform Block {\n"
10332 " layout (align = ALIGN) TYPE a;\n"
10608 vs_uni_block->Member("fifth", "layout(align = 64)", 0 /* expected_component */, 0 /* expected_location */, vec4,
10622 vs_si.Uniform("vs_uni_block", "layout (std140, binding = BINDING)", 0, 0, vs_uni_block, 0,
10625 vs_si.Uniform("vs_uni_block", "layout (std140, binding = BINDING, align = 64)", 0, 0, vs_uni_block, 0,
10720 vs_buf_block->Member("at_first_offset", "layout(offset = 0, align = 8 * basic_size)", 0 /* expected_component */,
10724 vs_buf_block->Member("at_second_offset", "layout(offset = type_size, align = basic_size / 2)",
10728 vs_buf_block->Member("at_third_offset", "layout(align = 2 * type_align)", 0 /* expected_component */,
10732 vs_buf_block->Member("at_fourth_offset", "layout(offset = 3 * type_align + type_size)", 0 /* expected_component */,
10742 vs_buf_block->Member("at_eigth_offset", "layout(align = 8 * basic_size)", 0 /* expected_component */,
10752 vs_si.SSB("vs_buf_block", "layout (std140, binding = BINDING)", 0, 0, vs_buf_block, 0,
10855 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
10857 "layout (QUALIFIERbinding = BINDING) buffer cs_Block {\n"
10858 " layout(offset = 16) vec4 b;\n"
10859 " layout(align = 64) vec4 a;\n"
10874 "layout (QUALIFIERbinding = BINDING) buffer Block {\n"
10875 " layout(offset = 16) vec4 b;\n"
10876 " layout(align = 64) vec4 a;\n"
10890 "layout(points) in;\n"
10891 "layout(triangle_strip, max_vertices = 4) out;\n"
10893 "layout (QUALIFIERbinding = BINDING) buffer gs_Block {\n"
10894 " layout(offset = 16) vec4 b;\n"
10895 " layout(align = 64) vec4 a;\n"
10921 "layout(vertices = 1) out;\n"
10923 "layout (QUALIFIERbinding = BINDING) buffer tcs_Block {\n"
10924 " layout(offset = 16) vec4 b;\n"
10925 " layout(align = 64) vec4 a;\n"
10947 "layout(isolines, point_mode) in;\n"
10949 "layout (QUALIFIERbinding = BINDING) buffer tes_Block {\n"
10950 " layout(offset = 16) vec4 b;\n"
10951 " layout(align = 64) vec4 a;\n"
10965 "layout (QUALIFIERbinding = BINDING) buffer vs_Block {\n"
10966 " layout(offset = 16) vec4 b;\n"
10967 " layout(align = 64) vec4 a;\n"
11219 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
11221 "layout (std140) buffer Block {\n"
11222 " layout (offset = OFFSET) TYPE member;\n"
11253 "layout (std140) buffer Block {\n"
11254 " layout (offset = OFFSET) TYPE member;\n"
11273 "layout(points) in;\n"
11274 "layout(triangle_strip, max_vertices = 4) out;\n"
11298 "layout(points) in;\n"
11299 "layout(triangle_strip, max_vertices = 4) out;\n"
11301 "layout (std140) buffer Block {\n"
11302 " layout (offset = OFFSET) TYPE member;\n"
11332 "layout(vertices = 1) out;\n"
11353 "layout(vertices = 1) out;\n"
11355 "layout (std140) buffer Block {\n"
11356 " layout (offset = OFFSET) TYPE member;\n"
11383 "layout(isolines, point_mode) in;\n"
11396 "layout(isolines, point_mode) in;\n"
11398 "layout (std140) buffer Block {\n"
11399 " layout (offset = OFFSET) TYPE member;\n"
11429 "layout (std140) buffer Block {\n"
11430 " layout (offset = OFFSET) TYPE member;\n"
11581 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
11583 "layout (std140) buffer Block {\n"
11584 " layout (offset = B_OFFSET) B_TYPE b;\n"
11585 " layout (offset = A_OFFSET) A_TYPE a;\n"
11617 "layout (std140) buffer Block {\n"
11618 " layout (offset = B_OFFSET) B_TYPE b;\n"
11619 " layout (offset = A_OFFSET) A_TYPE a;\n"
11639 "layout(points) in;\n"
11640 "layout(triangle_strip, max_vertices = 4) out;\n"
11664 "layout(points) in;\n"
11665 "layout(triangle_strip, max_vertices = 4) out;\n"
11667 "layout (std140) buffer Block {\n"
11668 " layout (offset = B_OFFSET) B_TYPE b;\n"
11669 " layout (offset = A_OFFSET) A_TYPE a;\n"
11700 "layout(vertices = 1) out;\n"
11721 "layout(vertices = 1) out;\n"
11723 "layout (std140) buffer Block {\n"
11724 " layout (offset = B_OFFSET) B_TYPE b;\n"
11725 " layout (offset = A_OFFSET) A_TYPE a;\n"
11753 "layout(isolines, point_mode) in;\n"
11766 "layout(isolines, point_mode) in;\n"
11768 "layout (std140) buffer Block {\n"
11769 " layout (offset = B_OFFSET) B_TYPE b;\n"
11770 " layout (offset = A_OFFSET) A_TYPE a;\n"
11801 "layout (std140) buffer Block {\n"
11802 " layout (offset = B_OFFSET) B_TYPE b;\n"
11803 " layout (offset = A_OFFSET) A_TYPE a;\n"
11960 "layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;\n"
11962 "layout (std140) buffer Block {\n"
11964 " layout (align = ALIGN) TYPE a;\n"
11995 "layout (std140) buffer Block {\n"
11997 " layout (align = ALIGN) TYPE a;\n"
12016 "layout(points) in;\n"
12017 "layout(triangle_strip, max_vertices = 4) out;\n"
12041 "layout(points) in;\n"
12042 "layout(triangle_strip, max_vertices = 4) out;\n"
12044 "layout (std140) buffer Block {\n"
12046 " layout (align = ALIGN) TYPE a;\n"
12076 "layout(vertices = 1) out;\n"
12097 "layout(vertices = 1) out;\n"
12099 "layout (std140) buffer Block {\n"
12101 " layout (align = ALIGN) TYPE a;\n"
12128 "layout(isolines, point_mode) in;\n"
12141 "layout(isolines, point_mode) in;\n"
12143 "layout (std140) buffer Block {\n"
12145 " layout (align = ALIGN) TYPE a;\n"
12175 "layout (std140) buffer Block {\n"
12177 " layout (align = ALIGN) TYPE a;\n"
12372 vs_buf_Block->Member("fifth", "layout(align = 16)", 0 /* expected_component */, 0 /* expected_location */, vec4,
12386 vs_si.SSB("vs_buf_block", "layout (std140, binding = BINDING)", 0, 0, vs_buf_Block, 0,
12389 vs_si.SSB("vs_buf_block", "layout (std140, binding = BINDING, align = 64)", 0, 0, vs_buf_Block, 0,
12533 const GLchar* qual_first_in = "layout (location = first_input_location)";
12534 const GLchar* qual_first_out = "layout (location = first_output_location)";
12535 const GLchar* qual_last_in = "layout (location = last_input_location)";
12536 const GLchar* qual_last_out = "layout (location = last_output_location)";
12556 qual_first_in = "layout (location = first_input_location) flat";
12557 qual_last_in = "layout (location = last_input_location) flat";
12561 qual_first_out = "layout (location = first_output_location) flat";
12562 qual_last_out = "layout (location = last_output_location) flat";
12698 si.Input("vertex_index" /* name */, "layout (location = vertex_index_location)" /* qualifiers */,
12702 si.Input("instance_index" /* name */, "layout (location = instance_index_location)" /* qualifiers */,
12903 const GLchar* qual_first_in = "layout (location = first_input_location)";
12904 const GLchar* qual_first_out = "layout (location = first_output_location)";
12905 const GLchar* qual_last_in = "layout (location = last_input_location)";
12906 const GLchar* qual_last_out = "layout (location = last_output_location)";
12926 qual_first_in = "layout (location = first_input_location) flat";
12927 qual_last_in = "layout (location = last_input_location) flat";
12931 qual_first_out = "layout (location = first_output_location) flat";
12932 qual_last_out = "layout (location = last_output_location) flat";
13044 si.Input("vs_in_single", "layout (location = 0)", 0 /* component */, 0 /* location */, type, false /* normalized */,
13048 si.Input("vs_in_array", "layout (location = 8)", 0 /* component */, 8 /* location */, type, false /* normalized */,
13052 si.Output("vs_tcs_output", "layout (location = 0)", 0 /* component */, 0 /* location */, structure,
13125 " /* layout (location = 4) */ vec4 goten;\n"
13127 " layout (location = 4) vec4 goten;\n"
13168 "layout(points) in;\n"
13169 "layout(triangle_strip, max_vertices = 4) out;\n"
13193 "layout(points) in;\n"
13194 "layout(triangle_strip, max_vertices = 4) out;\n"
13226 "layout(vertices = 1) out;\n"
13247 "layout(vertices = 1) out;\n"
13275 "layout(isolines, point_mode) in;\n"
13288 "layout(isolines, point_mode) in;\n"
13547 /* Memory layout is different from location layout */
13563 block->Member("third", "layout (location = 2)" /* qualifiers */, 0 /* component */, 2 /* location */, vec4,
13569 si.Output("vs_tcs_block", "layout (location = 4)", 0 /* component */, 4 /* location */, block,
13573 si.Input("vs_in_third", "layout (location = 0)", 0 /* component */, 0 /* location */, vec4, false /* normalized */,
13577 si.Input("vs_in_fourth", "layout (location = 1)", 0 /* component */, 1 /* location */, vec4, false /* normalized */,
13581 si.Input("vs_in_fifth", "layout (location = 2)", 0 /* component */, 2 /* location */, vec4, false /* normalized */,
13631 " layout (location = 2) vec4 gohan;\n"
13632 " layout (location = 4) vec4 goten;\n"
13633 " layout (location = 6) vec4 chichi;\n"
13638 " /* layout (location = 4) */ vec4 goten;\n"
13640 " layout (location = 4) vec4 goten;\n"
13679 "layout(points) in;\n"
13680 "layout(triangle_strip, max_vertices = 4) out;\n"
13704 "layout(points) in;\n"
13705 "layout(triangle_strip, max_vertices = 4) out;\n"
13735 "layout(vertices = 1) out;\n"
13756 "layout(vertices = 1) out;\n"
13782 "layout(isolines, point_mode) in;\n"
13795 "layout(isolines, point_mode) in;\n"
14039 static const GLchar* block_definition = "layout (location = 2) DIRECTION DBZ {\n"
14044 " /* layout (location = 1) */ vec4 chichi;\n"
14046 " layout (location = 1) vec4 chichi;\n"
14093 "layout(points) in;\n"
14094 "layout(triangle_strip, max_vertices = 4) out;\n"
14118 "layout(points) in;\n"
14119 "layout(triangle_strip, max_vertices = 4) out;\n"
14149 "layout(vertices = 1) out;\n"
14170 "layout(vertices = 1) out;\n"
14196 "layout(isolines, point_mode) in;\n"
14209 "layout(isolines, point_mode) in;\n"
14425 static const GLchar* var_definition = "layout (location = LAST /* + 1 */) FLAT DIRECTION TYPE gokuARRAY;\n";
14427 static const GLchar* var_definition = "layout (location = LAST + 1) FLAT DIRECTION TYPE gokuARRAY;\n";
14469 "layout(points) in;\n"
14470 "layout(triangle_strip, max_vertices = 4) out;\n"
14495 "layout(points) in;\n"
14496 "layout(triangle_strip, max_vertices = 4) out;\n"
14527 "layout(vertices = 1) out;\n"
14548 "layout(vertices = 1) out;\n"
14574 "layout(isolines, point_mode) in;\n"
14587 "layout(isolines, point_mode) in;\n"
14919 name.append(", layout: ");
15060 std::string qualifiers = "layout (location = LOCATION, component = COMPONENT) INTERPOLATION";
15303 VaryingComponentsTest::testCase::testCase(COMPONENTS_LAYOUT layout, Utils::Type::TYPES type)
15304 : m_layout(layout), m_type(type)
15349 "layout (location = 1 /*, component = COMPONENT */) FLAT DIRECTION TYPE gokuARRAY[1];\n";
15351 "layout (location = 1 /*, component = COMPONENT */) FLAT DIRECTION TYPE gokuARRAY;\n";
15354 "layout (location = 1, component = COMPONENT) FLAT DIRECTION TYPE gokuARRAY[1];\n";
15356 "layout (location = 1, component = COMPONENT) FLAT DIRECTION TYPE gokuARRAY;\n";
15407 "layout(points) in;\n"
15408 "layout(triangle_strip, max_vertices = 4) out;\n"
15432 "layout(points) in;\n"
15433 "layout(triangle_strip, max_vertices = 4) out;\n"
15463 "layout(vertices = 1) out;\n"
15484 "layout(vertices = 1) out;\n"
15510 "layout(isolines, point_mode) in;\n"
15523 "layout(isolines, point_mode) in;\n"
15818 "layout (location = 1 /*, component = 4 */) FLAT DIRECTION TYPE gokuARRAY[1];\n";
15820 "layout (location = 1 /*, component = 4 */) FLAT DIRECTION TYPE gokuARRAY;\n";
15823 "layout (location = 1, component = 4) FLAT DIRECTION TYPE gokuARRAY[1];\n";
15824 static const GLchar* var_definition_one = "layout (location = 1, component = 4) FLAT DIRECTION TYPE gokuARRAY;\n";
15875 "layout(points) in;\n"
15876 "layout(triangle_strip, max_vertices = 4) out;\n"
15900 "layout(points) in;\n"
15901 "layout(triangle_strip, max_vertices = 4) out;\n"
15931 "layout(vertices = 1) out;\n"
15952 "layout(vertices = 1) out;\n"
15978 "layout(isolines, point_mode) in;\n"
15991 "layout(isolines, point_mode) in;\n"
16264 static const GLchar* var_definition = "/* layout (component = COMPONENT) */ FLAT DIRECTION TYPE gokuARRAY;\n";
16266 static const GLchar* var_definition = "layout (component = COMPONENT) FLAT DIRECTION TYPE gokuARRAY;\n";
16308 "layout(points) in;\n"
16309 "layout(triangle_strip, max_vertices = 4) out;\n"
16333 "layout(points) in;\n"
16334 "layout(triangle_strip, max_vertices = 4) out;\n"
16364 "layout(vertices = 1) out;\n"
16385 "layout(vertices = 1) out;\n"
16411 "layout(isolines, point_mode) in;\n"
16424 "layout(isolines, point_mode) in;\n"
16667 static const GLchar* block_definition_arr = "layout (location = 1COMPONENT) DIRECTION Goku {\n"
16670 static const GLchar* block_definition_one = "layout (location = 1COMPONENT) DIRECTION Goku {\n"
16674 "layout (location = 1COMPONENT) FLAT DIRECTION TYPE gokuARRAY[1];\n";
16676 "layout (location = 1COMPONENT) FLAT DIRECTION TYPE gokuARRAY;\n";
16681 "layout (location = 1COMPONENT) FLAT DIRECTION Goku gokuARRAY[1];\n";
16686 "layout (location = 1COMPONENT) FLAT DIRECTION Goku gokuARRAY;\n";
16754 "layout(points) in;\n"
16755 "layout(triangle_strip, max_vertices = 4) out;\n"
16779 "layout(points) in;\n"
16780 "layout(triangle_strip, max_vertices = 4) out;\n"
16810 "layout(vertices = 1) out;\n"
16831 "layout(vertices = 1) out;\n"
16857 "layout(isolines, point_mode) in;\n"
16870 "layout(isolines, point_mode) in;\n"
17263 "layout (location = 1, component = COMPONENT) FLAT in TYPE gohanARRAY;\n"
17265 "/* layout (location = 1, component = COMPONENT) */ FLAT in TYPE gotenARRAY;\n";
17267 "layout (location = 1, component = COMPONENT) FLAT in TYPE gotenARRAY;\n";
17304 "layout(points) in;\n"
17305 "layout(triangle_strip, max_vertices = 4) out;\n"
17307 "layout (location = 1, component = COMPONENT) FLAT out TYPE gohan;\n"
17333 "layout(points) in;\n"
17334 "layout(triangle_strip, max_vertices = 4) out;\n"
17364 "layout(vertices = 1) out;\n"
17366 "layout (location = 1, component = COMPONENT) FLAT out TYPE gohan[];\n"
17388 "layout(vertices = 1) out;\n"
17414 "layout(isolines, point_mode) in;\n"
17416 "layout (location = 1, component = COMPONENT) FLAT out TYPE gohan;\n"
17431 "layout(isolines, point_mode) in;\n"
17450 "layout (location = 1, component = COMPONENT) FLAT out TYPE gohan;\n"
17692 "layout (location = 1, component = COMPONENT) FLAT out TYPE gohanARRAY;\n"
17694 "/* layout (location = 1, component = COMPONENT) */ FLAT out TYPE gotenARRAY;\n";
17696 "layout (location = 1, component = COMPONENT) FLAT out TYPE gotenARRAY;\n";
17731 "layout(points) in;\n"
17732 "layout(triangle_strip, max_vertices = 4) out;\n"
17756 "layout(points) in;\n"
17757 "layout(triangle_strip, max_vertices = 4) out;\n"
17787 "layout(vertices = 1) out;\n"
17808 "layout(vertices = 1) out;\n"
17834 "layout(isolines, point_mode) in;\n"
17847 "layout(isolines, point_mode) in;\n"
18081 "layout (location = 1, component = COMPONENT) FLAT DIRECTION TYPE gohanARRAY;\n"
18082 "layout (location = 1, component = COMPONENT) FLAT DIRECTION TYPE gotenARRAY;\n";
18126 "layout(points) in;\n"
18127 "layout(triangle_strip, max_vertices = 4) out;\n"
18151 "layout(points) in;\n"
18152 "layout(triangle_strip, max_vertices = 4) out;\n"
18182 "layout(vertices = 1) out;\n"
18203 "layout(vertices = 1) out;\n"
18229 "layout(isolines, point_mode) in;\n"
18242 "layout(isolines, point_mode) in;\n"
18568 "layout (location = 1, component = COMPONENT) INTERPOLATION DIRECTION TYPE gohanARRAY;\n"
18569 "layout (location = 1, component = COMPONENT) INTERPOLATION DIRECTION TYPE gotenARRAY;\n";
18613 "layout(points) in;\n"
18614 "layout(triangle_strip, max_vertices = 4) out;\n"
18638 "layout(points) in;\n"
18639 "layout(triangle_strip, max_vertices = 4) out;\n"
18669 "layout(vertices = 1) out;\n"
18690 "layout(vertices = 1) out;\n"
18716 "layout(isolines, point_mode) in;\n"
18729 "layout(isolines, point_mode) in;\n"
19117 "layout (location = 1, component = COMPONENT) AUX INTERPOLATION DIRECTION TYPE gohanARRAY;\n"
19118 "layout (location = 1, component = COMPONENT) AUX INTERPOLATION DIRECTION TYPE gotenARRAY;\n";
19162 "layout(points) in;\n"
19163 "layout(triangle_strip, max_vertices = 4) out;\n"
19187 "layout(points) in;\n"
19188 "layout(triangle_strip, max_vertices = 4) out;\n"
19218 "layout(vertices = 1) out;\n"
19239 "layout(vertices = 1) out;\n"
19265 "layout(isolines, point_mode) in;\n"
19278 "layout(isolines, point_mode) in;\n"
19732 si.Input("goku" /* name */, "layout (location = GOKU_LOCATION)" /* qualifiers */, 0 /* expected_componenet */,
19911 si.Output("goku" /* name */, "layout (location = GOKU_LOCATION)" /* qualifiers */, 0 /* expected_componenet */,
20052 static const GLchar* buffer_var_definition = "/* layout (xfb_buffer = 2) */ in vec4 gohanARRAY;\n";
20053 static const GLchar* offset_var_definition = "/* layout (xfb_offset = 16) */ in vec4 gohanARRAY;\n";
20054 static const GLchar* stride_var_definition = "/* layout (xfb_stride = 32) */ in vec4 gohanARRAY;\n";
20056 static const GLchar* buffer_var_definition = "layout (xfb_buffer = 2) in vec4 gohanARRAY;\n";
20057 static const GLchar* offset_var_definition = "layout (xfb_offset = 16) in vec4 gohanARRAY;\n";
20058 static const GLchar* stride_var_definition = "layout (xfb_stride = 32) in vec4 gohanARRAY;\n";
20089 "layout(points) in;\n"
20090 "layout(triangle_strip, max_vertices = 4) out;\n"
20114 "layout(points) in;\n"
20115 "layout(triangle_strip, max_vertices = 4) out;\n"
20143 "layout(vertices = 1) out;\n"
20164 "layout(vertices = 1) out;\n"
20188 "layout(isolines, point_mode) in;\n"
20201 "layout(isolines, point_mode) in;\n"
20531 static const GLchar* vs = "layout(xfb_buffer = 0, xfb_offset = 0) out vec4 vs_tcs;\n"
20532 "layout(binding = 0) uniform vs_block {\n"
20536 "layout(xfb_buffer = 1, xfb_offset = 0) out vec4 tcs_tes[1];\n"
20537 "layout(binding = 1) uniform tcs_block {\n"
20541 "layout(xfb_buffer = 2, xfb_offset = 0) out vec4 tes_gs;\n"
20542 "layout(binding = 2) uniform tes_block {\n"
20546 "layout(xfb_buffer = 3, xfb_offset = 0) out vec4 gs_fs;\n"
20547 "layout(binding = 3) uniform gs_block {\n"
20552 "layout(binding = 4) uniform fs_block {\n"
20813 static const GLchar* gs = "layout (xfb_buffer = 0, xfb_offset = 0) out vec4 gs_fs;\n"
20814 "layout (xfb_buffer = 1, xfb_stride = 64) out;\n"
20816 "layout (binding = 0) uniform gs_block {\n"
21120 static const GLchar* gs = "layout (xfb_buffer = 0, xfb_stride = 64) out vec4 gs_fs1;\n"
21121 "layout (xfb_buffer = 1, xfb_offset = 0) out vec4 gs_fs2;\n"
21123 "layout(binding = 0) uniform gs_block {\n"
21200 static const GLchar* array_var_definition = "layout (xfb_buffer = 0 /*, xfb_stride = 32 */ ) out;\n"
21202 static const GLchar* array_var_definition = "layout (xfb_buffer = 0, xfb_stride = 32) out;\n"
21205 "layout (xfb_offset = 16) out vec4 gohan[4];\n";
21207 static const GLchar* block_var_definition = "layout (xfb_buffer = 0 /*, xfb_stride = 32 */ ) out;\n"
21209 static const GLchar* block_var_definition = "layout (xfb_buffer = 0, xfb_stride = 32) out;\n"
21212 "layout (xfb_offset = 0) out Goku {\n"
21218 static const GLchar* offset_var_definition = "layout (xfb_buffer = 0 /*, xfb_stride = 40 */ ) out;\n"
21220 static const GLchar* offset_var_definition = "layout (xfb_buffer = 0, xfb_stride = 40) out;\n"
21223 "layout (xfb_offset = 32) out vec4 gohan;\n";
21224 // The test considers gohan overflows the buffer 0, but according to spec, it is valid to declare the variable with qualifier "layout (xfb_offset = 16, xfb_stride = 32) out vec4 gohan;"
21227 static const GLchar* stride_var_definition = "layout (xfb_buffer = 0 /*, xfb_stride = 28 */ ) out;\n"
21229 "layout (xfb_offset = 16 /*, xfb_stride = 28 */ ) out vec4 gohan;\n";
21231 static const GLchar* stride_var_definition = "layout (xfb_buffer = 0, xfb_stride = 28) out;\n"
21233 "layout (xfb_offset = 16, xfb_stride = 28) out vec4 gohan;\n";
21257 "layout(points) in;\n"
21258 "layout(triangle_strip, max_vertices = 4) out;\n"
21288 "layout(vertices = 1) out;\n"
21309 "layout(isolines, point_mode) in;\n"
21561 "layout (xfb_stride = 2 * type_size) out;\n"
21563 "layout (xfb_stride = type_size) out;\n"
21566 "layout (xfb_offset = 0) out TYPE goku;\n"
21567 "layout (xfb_offset = type_size) out TYPE vegeta;\n";
21570 "layout (xfb_stride = type_size) out;\n"
21572 "layout (xfb_offset = 0) out TYPE goku;\n";
21599 "layout(points) in;\n"
21600 "layout(triangle_strip, max_vertices = 4) out;\n"
21630 "layout(vertices = 1) out;\n"
21651 "layout(isolines, point_mode) in;\n"
21904 static const GLchar* var_definition = "layout (xfb_offset = 0, xfb_stride = 128) out Goku {\n"
21922 "layout(points) in;\n"
21923 "layout(triangle_strip, max_vertices = 4) out;\n"
21957 "layout(vertices = 1) out;\n"
21980 "layout(vertices = 1) out;\n"
22007 "layout(isolines, point_mode) in;\n"
22334 static const GLchar* gs = "layout (xfb_buffer = 0, xfb_offset = 0) out Goku {\n"
22336 " layout (xfb_stride = 48) vec4 goten;\n"
22339 "layout(binding = 0) uniform gs_block {\n"
22425 "layout (xfb_buffer = 0, xfb_stride = valid_stride) out;\n"
22426 "layout (xfb_buffer = 0, xfb_stride = conflicting_stride) out;\n";
22429 "layout (xfb_buffer = 0, xfb_stride = valid_stride) out;\n"
22430 "layout (xfb_buffer = 0, xfb_stride = valid_stride) out;\n";
22445 "layout(points) in;\n"
22446 "layout(triangle_strip, max_vertices = 4) out;\n"
22474 "layout(vertices = 1) out;\n"
22495 "layout(isolines, point_mode) in;\n"
22733 "layout (xfb_buffer = 1, xfb_stride = 4 * type_size) out;\n"
22735 "layout (xfb_buffer = 0, xfb_offset = 1 * type_size) out TYPE b0_v1ARRAY;\n"
22736 "layout (xfb_buffer = 1, xfb_offset = 1 * type_size) out TYPE b1_v1ARRAY;\n"
22737 "layout (xfb_buffer = 0, xfb_offset = 3 * type_size) out TYPE b0_v3ARRAY;\n"
22738 "layout (xfb_buffer = 0, xfb_offset = 0 * type_size) out TYPE b0_v0ARRAY;\n";
22754 "layout(points) in;\n"
22755 "layout(triangle_strip, max_vertices = 4) out;\n"
22791 "layout(vertices = 1) out;\n"
22818 "layout(isolines, point_mode) in;\n"
23095 layout (xfb_buffer = 0, xfb_offset = 1 * type_size) out type b0_v1;
23096 layout (xfb_buffer = 1, xfb_offset = 1 * type_size) out type b1_v1;
23097 layout (xfb_buffer = 0, xfb_offset = 3 * type_size) out type b0_v3;
23098 layout (xfb_buffer = 0, xfb_offset = 0 * type_size) out type b0_v0;
23167 layout (xfb_buffer = 1, xfb_stride = 4 * type_size) out;
23168 layout (xfb_buffer = 0, xfb_offset = 1 * type_size) out type b0_v1;
23169 layout (xfb_buffer = 1, xfb_offset = 1 * type_size) out type b1_v1;
23170 layout (xfb_buffer = 0, xfb_offset = 3 * type_size) out type b0_v3;
23171 layout (xfb_buffer = 0, xfb_offset = 0 * type_size) out type b0_v0;
23356 "layout (xfb_offset = 2 * sizeof_type) flat out TYPE vegeta;\n"
23358 "layout (xfb_offset = 0) flat out TYPE goku;\n"
23362 the definition equals to "layout(binding=0, shared)", if the block is declared as shared, each block member will
23363 not be packed, and each block member's layout in memory is implementation dependent, so we can't use the API
23366 we need to add the qualifier std140, and change the declaration as layout(binding=0, std140), which can make
23369 "layout(binding = 0, std140) uniform gs_block {\n"
23600 static const GLchar* gs = "layout (xfb_buffer = 1, xfb_stride = 64) out;\n"
23601 "layout (xfb_buffer = 2, xfb_stride = 64) out;\n"
23602 "layout (xfb_buffer = 3, xfb_stride = 64) out;\n"
23604 "layout (stream = 0, xfb_buffer = 1, xfb_offset = 48) out vec4 goku;\n"
23605 "layout (stream = 0, xfb_buffer = 1, xfb_offset = 32) out vec4 gohan;\n"
23606 "layout (stream = 0, xfb_buffer = 1, xfb_offset = 16) out vec4 goten;\n"
23607 "layout (stream = 1, xfb_buffer = 3, xfb_offset = 48) out vec4 picolo;\n"
23608 "layout (stream = 1, xfb_buffer = 3, xfb_offset = 32) out vec4 vegeta;\n"
23609 "layout (stream = 2, xfb_buffer = 2, xfb_offset = 32) out vec4 bulma;\n"
23611 "layout(binding = 0) uniform gs_block {\n"
23664 "layout (xfb_buffer = 1, xfb_stride = valid_stride) out;\n"
23665 "layout (xfb_buffer = 3, xfb_stride = valid_stride) out;\n"
23669 "layout (stream = 0, xfb_buffer = 1, xfb_offset = 48) out vec4 goku;\n"
23670 "layout (stream = 1, xfb_buffer = 3, xfb_offset = 32) out vec4 gohan;\n"
23671 "layout (stream = 2, xfb_buffer = 2, xfb_offset = 16) out vec4 goten;\n";
23673 "layout (stream = 0, xfb_buffer = 1, xfb_offset = 48) out vec4 goku;\n"
23674 "layout (stream = 1, xfb_buffer = 1, xfb_offset = 32) out vec4 gohan;\n"
23675 "layout (stream = 2, xfb_buffer = 1, xfb_offset = 16) out vec4 goten;\n";
23695 "layout(points) in;\n"
23696 "layout(triangle_strip, max_vertices = 4) out;\n"
23797 "layout (xfb_buffer = 0, xfb_offset = 0) out Goku {\n"
23799 "layout (xfb_buffer = buffer_index, xfb_offset = 0) out Goku {\n"
23806 "layout (xfb_buffer = 0) out;\n";
23808 "layout (xfb_buffer = buffer_index) out;\n";
23813 "layout (xfb_buffer = 0) out vec4 goku;\n";
23815 "layout (xfb_buffer = buffer_index) out vec4 goku;\n";
23834 "layout(points) in;\n"
23835 "layout(triangle_strip, max_vertices = 4) out;\n"
23865 "layout(vertices = 1) out;\n"
23886 "layout(isolines, point_mode) in;\n"
24132 "layout (xfb_buffer = 0, xfb_offset = 0) out Goku {\n"
24134 "layout (xfb_buffer = 0, xfb_offset = overflow_offset + 16) out Goku "
24142 "layout (xfb_buffer = 0, xfb_stride = 0) out;\n";
24144 "layout (xfb_buffer = 0, xfb_stride = overflow_offset) out;\n";
24149 "layout (xfb_buffer = 0, xfb_offset = 0) out vec4 goku;\n";
24151 "layout (xfb_buffer = 0, xfb_offset = overflow_offset) out vec4 "
24171 "layout(points) in;\n"
24172 "layout(triangle_strip, max_vertices = 4) out;\n"
24202 "layout(vertices = 1) out;\n"
24223 "layout(isolines, point_mode) in;\n"
24579 "layout(points) in;\n"
24580 "layout(points, max_vertices = 1) out;\n"
24594 "layout(vertices = 1) out;\n"
24611 "layout(isolines, point_mode) in;\n"
24653 std::string interface = "layout (xfb_buffer = 3) out;\n"
24657 "layout ( xfb_offset = 2 * type_size) flat out TYPE chichi;\n"
24658 "layout (xfb_buffer = 1, xfb_offset = 0) flat out TYPE bulma;\n"
24659 "layout (xfb_buffer = 1, xfb_offset = 1 * type_size) out Vegeta {\n"
24663 "layout ( xfb_offset = 0) out Goku {\n"
24669 "layout(binding = 0, std140) uniform block {\n"
24902 if xfb varying output from TES or GS, because the input primitive type in TES is defined as "layout(isolines, point_mode) in;",
25005 static const GLchar* vs_tes_gs = "layout (xfb_offset = 0) FLAT out TYPE goku;\n"
25007 "layout(std140, binding = 0) uniform Goku {\n"
25187 static const GLchar* var_definition = "layout (xfb_offset = 0) out Goku {\n"
25190 " /* layout (xfb_buffer = 1) */ vec4 goten;\n"
25192 " layout (xfb_buffer = 1) vec4 goten;\n"
25211 "layout(points) in;\n"
25212 "layout(triangle_strip, max_vertices = 4) out;\n"
25242 "layout(vertices = 1) out;\n"
25263 "layout(isolines, point_mode) in;\n"
25459 static const GLchar* var_definition = "layout (xfb_offset = 0) out TYPE gohan;\n"
25461 "/* layout (xfb_offset = OFFSET) */ out TYPE goten;\n";
25463 "layout (xfb_offset = OFFSET) out TYPE goten;\n";
25486 "layout(points) in;\n"
25487 "layout(triangle_strip, max_vertices = 4) out;\n"
25517 "layout(vertices = 1) out;\n"
25538 "layout(isolines, point_mode) in;\n"
25761 static const GLchar* var_definition = "/* layout (xfb_offset = OFFSET) */ out TYPE gohan;\n";
25763 static const GLchar* var_definition = "layout (xfb_offset = OFFSET) out TYPE gohan;\n";
25784 "layout(points) in;\n"
25785 "layout(triangle_strip, max_vertices = 4) out;\n"
25815 "layout(vertices = 1) out;\n"
25836 "layout(isolines, point_mode) in;\n"
26190 "layout (xfb_offset = 1 * sizeof_type) out vec4 goku;\n"
26191 "layout (xfb_offset = 2 * sizeof_type) out vec4 gohan;\n"
26192 "layout (xfb_offset = 0 * sizeof_type) out vec4 goten;\n"
26194 "layout(binding = 0) uniform block {\n"
26606 "layout (xfb_offset = 2 * sizeof_type) out vec4 goku;\n"
26607 "layout (xfb_offset = 0 * sizeof_type) out vec4 gohan;\n"
26608 "layout (xfb_offset = 1 * sizeof_type) out vec4 goten;\n"
26609 "layout (xfb_offset = 3 * sizeof_type) out vec4 chichi;\n"
26610 "layout (xfb_offset = 7 * sizeof_type) out vec4 vegeta;\n"
26611 "layout (xfb_offset = 6 * sizeof_type) out vec4 trunks;\n"
26612 "layout (xfb_offset = 5 * sizeof_type) out vec4 bra;\n"
26613 "layout (xfb_offset = 4 * sizeof_type) out vec4 bulma;\n"
26615 "layout(binding = 0) uniform block {\n"
26995 "layout (xfb_offset = 1 * sizeof_type) out Goku {\n"
27001 "layout(binding = 0) uniform block {\n"
27346 "layout (xfb_offset = sizeof_type) out Goku goku;\n"
27348 "layout(binding = 0, std140) uniform block {\n"
27552 static const GLchar* var_definition = "/* layout (xfb_offset = 0) */ out vec4 goku[];\n";
27554 static const GLchar* var_definition = "layout (xfb_offset = 0) out vec4 goku[];\n";
27783 if xfb varying output from TES or GS, because the input primitive type in TES is defined as "layout(isolines, point_mode) in;",
27875 static const GLchar* vs_tes_gs = "layout (location = 0, xfb_offset = 0) FLAT out TYPE gokuARRAY;\n"
27877 "layout(std140, binding = 0) uniform Goku {\n"
28222 if xfb varying output from TES or GS, because the input primitive type in TES is defined as "layout(isolines, point_mode) in;",
28317 "layout (location = 0, xfb_offset = 0) flat out TestStruct goku;\n"
28319 "layout(std140, binding = 0) uniform Goku {\n"
28330 "layout (location = 0, xfb_offset = 0) flat out OuterStruct goku;\n"
28332 "layout(std140, binding = 0) uniform Goku {\n"