1 static const char passthrough_vertex_shader_source_spv
[] =
4 "; Generator: Khronos Glslang Reference Front End; 6\n"
7 " OpCapability Shader\n"
8 " %1 = OpExtInstImport \"GLSL.std.450\"\n"
9 " OpMemoryModel Logical GLSL450\n"
10 " OpEntryPoint Vertex %main \"main\" %_ %piglit_vertex %gl_VertexID %gl_InstanceID\n"
11 " OpSource GLSL 450\n"
12 " OpMemberDecorate %gl_PerVertex 0 BuiltIn Position\n"
13 " OpMemberDecorate %gl_PerVertex 1 BuiltIn PointSize\n"
14 " OpMemberDecorate %gl_PerVertex 2 BuiltIn ClipDistance\n"
15 " OpMemberDecorate %gl_PerVertex 3 BuiltIn CullDistance\n"
16 " OpDecorate %gl_PerVertex Block\n"
17 " OpDecorate %piglit_vertex Location 0\n"
18 " OpDecorate %gl_VertexID BuiltIn VertexId\n"
19 " OpDecorate %gl_InstanceID BuiltIn InstanceId\n"
20 " %void = OpTypeVoid\n"
21 " %3 = OpTypeFunction %void\n"
22 " %float = OpTypeFloat 32\n"
23 " %v4float = OpTypeVector %float 4\n"
24 " %uint = OpTypeInt 32 0\n"
25 " %uint_1 = OpConstant %uint 1\n"
26 "%_arr_float_uint_1 = OpTypeArray %float %uint_1\n"
27 "%gl_PerVertex = OpTypeStruct %v4float %float %_arr_float_uint_1 %_arr_float_uint_1\n"
28 "%_ptr_Output_gl_PerVertex = OpTypePointer Output %gl_PerVertex\n"
29 " %_ = OpVariable %_ptr_Output_gl_PerVertex Output\n"
30 " %int = OpTypeInt 32 1\n"
31 " %int_0 = OpConstant %int 0\n"
32 "%_ptr_Input_v4float = OpTypePointer Input %v4float\n"
33 "%piglit_vertex = OpVariable %_ptr_Input_v4float Input\n"
34 "%_ptr_Output_v4float = OpTypePointer Output %v4float\n"
35 "%_ptr_Input_int = OpTypePointer Input %int\n"
36 "%gl_VertexID = OpVariable %_ptr_Input_int Input\n"
37 "%gl_InstanceID = OpVariable %_ptr_Input_int Input\n"
38 " %main = OpFunction %void None %3\n"
40 " %18 = OpLoad %v4float %piglit_vertex\n"
41 " %20 = OpAccessChain %_ptr_Output_v4float %_ %int_0\n"