| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 30 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %frag_main "frag_main" %value |
| OpExecutionMode %frag_main OriginUpperLeft |
| OpName %value "value" |
| OpName %frag_main_inner "frag_main_inner" |
| OpName %b "b" |
| OpName %v "v" |
| OpName %frag_main "frag_main" |
| OpDecorate %value Location 0 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %5 = OpConstantNull %v4float |
| %value = OpVariable %_ptr_Output_v4float Output %5 |
| %6 = OpTypeFunction %v4float |
| %float_0 = OpConstant %float 0 |
| %_ptr_Function_float = OpTypePointer Function %float |
| %12 = OpConstantNull %float |
| %v3float = OpTypeVector %float 3 |
| %_ptr_Function_v3float = OpTypePointer Function %v3float |
| %18 = OpConstantNull %v3float |
| %float_1 = OpConstant %float 1 |
| %void = OpTypeVoid |
| %25 = OpTypeFunction %void |
| %frag_main_inner = OpFunction %v4float None %6 |
| %8 = OpLabel |
| %b = OpVariable %_ptr_Function_float Function %12 |
| %v = OpVariable %_ptr_Function_v3float Function %18 |
| OpStore %b %float_0 |
| %14 = OpLoad %float %b |
| %15 = OpCompositeConstruct %v3float %14 %14 %14 |
| OpStore %v %15 |
| %19 = OpLoad %v3float %v |
| %20 = OpCompositeExtract %float %19 0 |
| %21 = OpCompositeExtract %float %19 1 |
| %22 = OpCompositeExtract %float %19 2 |
| %24 = OpCompositeConstruct %v4float %20 %21 %22 %float_1 |
| OpReturnValue %24 |
| OpFunctionEnd |
| %frag_main = OpFunction %void None %25 |
| %28 = OpLabel |
| %29 = OpFunctionCall %v4float %frag_main_inner |
| OpStore %value %29 |
| OpReturn |
| OpFunctionEnd |