| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 6 |
| 4 |
; Bound: 47 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %a %b %FragColor |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource GLSL 450 |
| 12 |
OpName %main "main" |
| 13 |
OpName %func__vf4_ "fu__nc_" |
| 14 |
OpName %a_ "a_" |
| 15 |
OpName %func_2_vf4_ "fu__nc_" |
| 16 |
OpName %a_2 "___" |
| 17 |
OpName %c0 "___" |
| 18 |
OpName %a "__" |
| 19 |
OpName %b "a" |
| 20 |
OpName %param "b" |
| 21 |
OpName %c1 "b" |
| 22 |
OpName %param_0 "b" |
| 23 |
OpName %FragColor "b" |
| 24 |
OpDecorate %a Location 0 |
| 25 |
OpDecorate %b Location 1 |
| 26 |
OpDecorate %FragColor Location 0 |
| 27 |
%void = OpTypeVoid |
| 28 |
%3 = OpTypeFunction %void |
| 29 |
%float = OpTypeFloat 32 |
| 30 |
%v4float = OpTypeVector %float 4 |
| 31 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 32 |
%9 = OpTypeFunction %v4float %_ptr_Function_v4float |
| 33 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 34 |
%a = OpVariable %_ptr_Input_v4float Input |
| 35 |
%b = OpVariable %_ptr_Input_v4float Input |
| 36 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 37 |
%FragColor = OpVariable %_ptr_Output_v4float Output |
| 38 |
%main = OpFunction %void None %3 |
| 39 |
%5 = OpLabel |
| 40 |
%c0 = OpVariable %_ptr_Function_v4float Function |
| 41 |
%param = OpVariable %_ptr_Function_v4float Function |
| 42 |
%c1 = OpVariable %_ptr_Function_v4float Function |
| 43 |
%param_0 = OpVariable %_ptr_Function_v4float Function |
| 44 |
%25 = OpLoad %v4float %a |
| 45 |
%27 = OpLoad %v4float %b |
| 46 |
%28 = OpFAdd %v4float %25 %27 |
| 47 |
%30 = OpLoad %v4float %a |
| 48 |
OpStore %param %30 |
| 49 |
%31 = OpFunctionCall %v4float %func__vf4_ %param |
| 50 |
%32 = OpFAdd %v4float %28 %31 |
| 51 |
OpStore %c0 %32 |
| 52 |
%34 = OpLoad %v4float %a |
| 53 |
%35 = OpLoad %v4float %b |
| 54 |
%36 = OpFSub %v4float %34 %35 |
| 55 |
%38 = OpLoad %v4float %b |
| 56 |
OpStore %param_0 %38 |
| 57 |
%39 = OpFunctionCall %v4float %func_2_vf4_ %param_0 |
| 58 |
%40 = OpFAdd %v4float %36 %39 |
| 59 |
OpStore %c1 %40 |
| 60 |
%43 = OpLoad %v4float %c0 |
| 61 |
OpStore %FragColor %43 |
| 62 |
%44 = OpLoad %v4float %c1 |
| 63 |
OpStore %FragColor %44 |
| 64 |
%45 = OpLoad %v4float %c0 |
| 65 |
OpStore %FragColor %45 |
| 66 |
%46 = OpLoad %v4float %c1 |
| 67 |
OpStore %FragColor %46 |
| 68 |
OpReturn |
| 69 |
OpFunctionEnd |
| 70 |
%func__vf4_ = OpFunction %v4float None %9 |
| 71 |
%a_ = OpFunctionParameter %_ptr_Function_v4float |
| 72 |
%12 = OpLabel |
| 73 |
%16 = OpLoad %v4float %a_ |
| 74 |
OpReturnValue %16 |
| 75 |
OpFunctionEnd |
| 76 |
%func_2_vf4_ = OpFunction %v4float None %9 |
| 77 |
%a_2 = OpFunctionParameter %_ptr_Function_v4float |
| 78 |
%15 = OpLabel |
| 79 |
%19 = OpLoad %v4float %a_2 |
| 80 |
OpReturnValue %19 |
| 81 |
OpFunctionEnd |