| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 3 |
| 4 |
; Bound: 76 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %FragColor |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource ESSL 310 |
| 12 |
OpName %main "main" |
| 13 |
OpName %foobar_vf4_ "foo" |
| 14 |
OpName %a "foo" |
| 15 |
OpName %foobar_vf3_ "foo" |
| 16 |
OpName %a_0 "foo" |
| 17 |
OpName %foobaz_vf4_ "foo" |
| 18 |
OpName %a_1 "foo" |
| 19 |
OpName %foobaz_vf2_ "foo" |
| 20 |
OpName %a_2 "foo" |
| 21 |
OpName %a_3 "foo" |
| 22 |
OpName %param "foo" |
| 23 |
OpName %b "foo" |
| 24 |
OpName %param_0 "foo" |
| 25 |
OpName %c "foo" |
| 26 |
OpName %param_1 "foo" |
| 27 |
OpName %d "foo" |
| 28 |
OpName %param_2 "foo" |
| 29 |
OpName %FragColor "FragColor" |
| 30 |
OpDecorate %foobar_vf4_ RelaxedPrecision |
| 31 |
OpDecorate %a RelaxedPrecision |
| 32 |
OpDecorate %foobar_vf3_ RelaxedPrecision |
| 33 |
OpDecorate %a_0 RelaxedPrecision |
| 34 |
OpDecorate %foobaz_vf4_ RelaxedPrecision |
| 35 |
OpDecorate %a_1 RelaxedPrecision |
| 36 |
OpDecorate %foobaz_vf2_ RelaxedPrecision |
| 37 |
OpDecorate %a_2 RelaxedPrecision |
| 38 |
OpDecorate %28 RelaxedPrecision |
| 39 |
OpDecorate %30 RelaxedPrecision |
| 40 |
OpDecorate %31 RelaxedPrecision |
| 41 |
OpDecorate %34 RelaxedPrecision |
| 42 |
OpDecorate %35 RelaxedPrecision |
| 43 |
OpDecorate %36 RelaxedPrecision |
| 44 |
OpDecorate %37 RelaxedPrecision |
| 45 |
OpDecorate %40 RelaxedPrecision |
| 46 |
OpDecorate %42 RelaxedPrecision |
| 47 |
OpDecorate %43 RelaxedPrecision |
| 48 |
OpDecorate %46 RelaxedPrecision |
| 49 |
OpDecorate %47 RelaxedPrecision |
| 50 |
OpDecorate %48 RelaxedPrecision |
| 51 |
OpDecorate %49 RelaxedPrecision |
| 52 |
OpDecorate %a_3 RelaxedPrecision |
| 53 |
OpDecorate %55 RelaxedPrecision |
| 54 |
OpDecorate %b RelaxedPrecision |
| 55 |
OpDecorate %59 RelaxedPrecision |
| 56 |
OpDecorate %c RelaxedPrecision |
| 57 |
OpDecorate %62 RelaxedPrecision |
| 58 |
OpDecorate %d RelaxedPrecision |
| 59 |
OpDecorate %66 RelaxedPrecision |
| 60 |
OpDecorate %FragColor RelaxedPrecision |
| 61 |
OpDecorate %FragColor Location 0 |
| 62 |
OpDecorate %69 RelaxedPrecision |
| 63 |
OpDecorate %70 RelaxedPrecision |
| 64 |
OpDecorate %71 RelaxedPrecision |
| 65 |
OpDecorate %72 RelaxedPrecision |
| 66 |
OpDecorate %73 RelaxedPrecision |
| 67 |
OpDecorate %74 RelaxedPrecision |
| 68 |
OpDecorate %75 RelaxedPrecision |
| 69 |
%void = OpTypeVoid |
| 70 |
%3 = OpTypeFunction %void |
| 71 |
%float = OpTypeFloat 32 |
| 72 |
%v4float = OpTypeVector %float 4 |
| 73 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 74 |
%9 = OpTypeFunction %v4float %_ptr_Function_v4float |
| 75 |
%v3float = OpTypeVector %float 3 |
| 76 |
%_ptr_Function_v3float = OpTypePointer Function %v3float |
| 77 |
%15 = OpTypeFunction %v4float %_ptr_Function_v3float |
| 78 |
%v2float = OpTypeVector %float 2 |
| 79 |
%_ptr_Function_v2float = OpTypePointer Function %v2float |
| 80 |
%24 = OpTypeFunction %v4float %_ptr_Function_v2float |
| 81 |
%float_1 = OpConstant %float 1 |
| 82 |
%float_2 = OpConstant %float 2 |
| 83 |
%53 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1 |
| 84 |
%57 = OpConstantComposite %v3float %float_1 %float_1 %float_1 |
| 85 |
%64 = OpConstantComposite %v2float %float_1 %float_1 |
| 86 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 87 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 88 |
%main = OpFunction %void None %3 |
| 89 |
%5 = OpLabel |
| 90 |
%a_3 = OpVariable %_ptr_Function_v4float Function |
| 91 |
%param = OpVariable %_ptr_Function_v4float Function |
| 92 |
%b = OpVariable %_ptr_Function_v4float Function |
| 93 |
%param_0 = OpVariable %_ptr_Function_v3float Function |
| 94 |
%c = OpVariable %_ptr_Function_v4float Function |
| 95 |
%param_1 = OpVariable %_ptr_Function_v4float Function |
| 96 |
%d = OpVariable %_ptr_Function_v4float Function |
| 97 |
%param_2 = OpVariable %_ptr_Function_v2float Function |
| 98 |
OpStore %param %53 |
| 99 |
%55 = OpFunctionCall %v4float %foobar_vf4_ %param |
| 100 |
OpStore %a_3 %55 |
| 101 |
OpStore %param_0 %57 |
| 102 |
%59 = OpFunctionCall %v4float %foobar_vf3_ %param_0 |
| 103 |
OpStore %b %59 |
| 104 |
OpStore %param_1 %53 |
| 105 |
%62 = OpFunctionCall %v4float %foobaz_vf4_ %param_1 |
| 106 |
OpStore %c %62 |
| 107 |
OpStore %param_2 %64 |
| 108 |
%66 = OpFunctionCall %v4float %foobaz_vf2_ %param_2 |
| 109 |
OpStore %d %66 |
| 110 |
%69 = OpLoad %v4float %a_3 |
| 111 |
%70 = OpLoad %v4float %b |
| 112 |
%71 = OpFAdd %v4float %69 %70 |
| 113 |
%72 = OpLoad %v4float %c |
| 114 |
%73 = OpFAdd %v4float %71 %72 |
| 115 |
%74 = OpLoad %v4float %d |
| 116 |
%75 = OpFAdd %v4float %73 %74 |
| 117 |
OpStore %FragColor %75 |
| 118 |
OpReturn |
| 119 |
OpFunctionEnd |
| 120 |
%foobar_vf4_ = OpFunction %v4float None %9 |
| 121 |
%a = OpFunctionParameter %_ptr_Function_v4float |
| 122 |
%12 = OpLabel |
| 123 |
%28 = OpLoad %v4float %a |
| 124 |
%30 = OpCompositeConstruct %v4float %float_1 %float_1 %float_1 %float_1 |
| 125 |
%31 = OpFAdd %v4float %28 %30 |
| 126 |
OpReturnValue %31 |
| 127 |
OpFunctionEnd |
| 128 |
%foobar_vf3_ = OpFunction %v4float None %15 |
| 129 |
%a_0 = OpFunctionParameter %_ptr_Function_v3float |
| 130 |
%18 = OpLabel |
| 131 |
%34 = OpLoad %v3float %a_0 |
| 132 |
%35 = OpVectorShuffle %v4float %34 %34 0 1 2 2 |
| 133 |
%36 = OpCompositeConstruct %v4float %float_1 %float_1 %float_1 %float_1 |
| 134 |
%37 = OpFAdd %v4float %35 %36 |
| 135 |
OpReturnValue %37 |
| 136 |
OpFunctionEnd |
| 137 |
%foobaz_vf4_ = OpFunction %v4float None %9 |
| 138 |
%a_1 = OpFunctionParameter %_ptr_Function_v4float |
| 139 |
%21 = OpLabel |
| 140 |
%40 = OpLoad %v4float %a_1 |
| 141 |
%42 = OpCompositeConstruct %v4float %float_2 %float_2 %float_2 %float_2 |
| 142 |
%43 = OpFAdd %v4float %40 %42 |
| 143 |
OpReturnValue %43 |
| 144 |
OpFunctionEnd |
| 145 |
%foobaz_vf2_ = OpFunction %v4float None %24 |
| 146 |
%a_2 = OpFunctionParameter %_ptr_Function_v2float |
| 147 |
%27 = OpLabel |
| 148 |
%46 = OpLoad %v2float %a_2 |
| 149 |
%47 = OpVectorShuffle %v4float %46 %46 0 1 0 1 |
| 150 |
%48 = OpCompositeConstruct %v4float %float_2 %float_2 %float_2 %float_2 |
| 151 |
%49 = OpFAdd %v4float %47 %48 |
| 152 |
OpReturnValue %49 |
| 153 |
OpFunctionEnd |