| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 24 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %main_loc0_Output |
| OpExecutionMode %main OriginUpperLeft |
| OpName %main_loc0_Output "main_loc0_Output" |
| OpName %bar "bar" |
| OpName %main_inner "main_inner" |
| OpName %a "a" |
| OpName %main "main" |
| OpDecorate %main_loc0_Output Location 0 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %main_loc0_Output = OpVariable %_ptr_Output_v4float Output |
| %void = OpTypeVoid |
| %7 = OpTypeFunction %void |
| %10 = OpTypeFunction %v4float |
| %v2float = OpTypeVector %float 2 |
| %_ptr_Function_v2float = OpTypePointer Function %v2float |
| %15 = OpConstantNull %v2float |
| %float_0_400000006 = OpConstant %float 0.400000006 |
| %float_0_800000012 = OpConstant %float 0.800000012 |
| %float_1 = OpConstant %float 1 |
| %17 = OpConstantComposite %v4float %float_0_400000006 %float_0_400000006 %float_0_800000012 %float_1 |
| %bar = OpFunction %void None %7 |
| %8 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %main_inner = OpFunction %v4float None %10 |
| %11 = OpLabel |
| %a = OpVariable %_ptr_Function_v2float Function |
| OpStore %a %15 |
| %16 = OpFunctionCall %void %bar |
| OpReturnValue %17 |
| OpFunctionEnd |
| %main = OpFunction %void None %7 |
| %22 = OpLabel |
| %23 = OpFunctionCall %v4float %main_inner |
| OpStore %main_loc0_Output %23 None |
| OpReturn |
| OpFunctionEnd |