1 # Test a very simple VS-PS shader pipeline. It doesn't even have
10 ; Automatically generated from the GLSL by shader_test_spirv.py. DO NOT EDIT
13 ; Generator: Khronos Glslang Reference Front End; 7
17 %1 = OpExtInstImport "GLSL.std.450"
18 OpMemoryModel Logical GLSL450
19 OpEntryPoint Vertex %main "main" %_ %piglit_vertex %gl_VertexID %gl_InstanceID
22 OpMemberDecorate %gl_PerVertex 0 BuiltIn Position
23 OpMemberDecorate %gl_PerVertex 1 BuiltIn PointSize
24 OpMemberDecorate %gl_PerVertex 2 BuiltIn ClipDistance
25 OpMemberDecorate %gl_PerVertex 3 BuiltIn CullDistance
26 OpDecorate %gl_PerVertex Block
27 OpDecorate %piglit_vertex Location 0
28 OpDecorate %gl_VertexID BuiltIn VertexId
29 OpDecorate %gl_InstanceID BuiltIn InstanceId
31 %3 = OpTypeFunction %void
32 %float = OpTypeFloat 32
33 %v4float = OpTypeVector %float 4
34 %uint = OpTypeInt 32 0
35 %uint_1 = OpConstant %uint 1
36 %_arr_float_uint_1 = OpTypeArray %float %uint_1
37 %gl_PerVertex = OpTypeStruct %v4float %float %_arr_float_uint_1 %_arr_float_uint_1
38 %_ptr_Output_gl_PerVertex = OpTypePointer Output %gl_PerVertex
39 %_ = OpVariable %_ptr_Output_gl_PerVertex Output
41 %int_0 = OpConstant %int 0
42 %_ptr_Input_v4float = OpTypePointer Input %v4float
43 %piglit_vertex = OpVariable %_ptr_Input_v4float Input
44 %_ptr_Output_v4float = OpTypePointer Output %v4float
45 %_ptr_Input_int = OpTypePointer Input %int
46 %gl_VertexID = OpVariable %_ptr_Input_int Input
47 %gl_InstanceID = OpVariable %_ptr_Input_int Input
48 %main = OpFunction %void None %3
50 %18 = OpLoad %v4float %piglit_vertex
51 %20 = OpAccessChain %_ptr_Output_v4float %_ %int_0
59 layout(location = 0) in vec4 piglit_vertex;
62 gl_Position = piglit_vertex;
65 [fragment shader spirv]
66 ; Automatically generated from the GLSL by shader_test_spirv.py. DO NOT EDIT
69 ; Generator: Khronos Glslang Reference Front End; 7
73 %1 = OpExtInstImport "GLSL.std.450"
74 OpMemoryModel Logical GLSL450
75 OpEntryPoint Fragment %main "main" %outcolor
76 OpExecutionMode %main OriginLowerLeft
78 OpDecorate %outcolor Location 0
80 %3 = OpTypeFunction %void
81 %float = OpTypeFloat 32
82 %v4float = OpTypeVector %float 4
83 %_ptr_Output_v4float = OpTypePointer Output %v4float
84 %outcolor = OpVariable %_ptr_Output_v4float Output
85 %float_0 = OpConstant %float 0
86 %float_1 = OpConstant %float 1
87 %12 = OpConstantComposite %v4float %float_0 %float_1 %float_0 %float_1
88 %main = OpFunction %void None %3
97 layout(location = 0) out vec4 outcolor;
100 outcolor = vec4(0.0, 1.0, 0.0, 1.0);
104 clear color 1.0 0.0 0.0 0.0
108 probe all rgba 0.0 1.0 0.0 1.0