| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 32 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %main_loc0_Input %main_loc1_Input %main_loc2_Input %main_loc3_Input |
| OpExecutionMode %main OriginUpperLeft |
| OpName %main_loc0_Input "main_loc0_Input" |
| OpName %main_loc1_Input "main_loc1_Input" |
| OpName %main_loc2_Input "main_loc2_Input" |
| OpName %main_loc3_Input "main_loc3_Input" |
| OpName %main_inner "main_inner" |
| OpMemberName %FragmentInputs 0 "loc0" |
| OpMemberName %FragmentInputs 1 "loc1" |
| OpMemberName %FragmentInputs 2 "loc2" |
| OpMemberName %FragmentInputs 3 "loc3" |
| OpName %FragmentInputs "FragmentInputs" |
| OpName %inputs "inputs" |
| OpName %i "i" |
| OpName %u "u" |
| OpName %f "f" |
| OpName %v "v" |
| OpName %main "main" |
| OpDecorate %main_loc0_Input Location 0 |
| OpDecorate %main_loc0_Input Flat |
| OpDecorate %main_loc1_Input Location 1 |
| OpDecorate %main_loc1_Input Flat |
| OpDecorate %main_loc2_Input Location 2 |
| OpDecorate %main_loc3_Input Location 3 |
| OpMemberDecorate %FragmentInputs 0 Offset 0 |
| OpMemberDecorate %FragmentInputs 1 Offset 4 |
| OpMemberDecorate %FragmentInputs 2 Offset 8 |
| OpMemberDecorate %FragmentInputs 3 Offset 16 |
| %int = OpTypeInt 32 1 |
| %_ptr_Input_int = OpTypePointer Input %int |
| %main_loc0_Input = OpVariable %_ptr_Input_int Input |
| %uint = OpTypeInt 32 0 |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %main_loc1_Input = OpVariable %_ptr_Input_uint Input |
| %float = OpTypeFloat 32 |
| %_ptr_Input_float = OpTypePointer Input %float |
| %main_loc2_Input = OpVariable %_ptr_Input_float Input |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Input_v4float = OpTypePointer Input %v4float |
| %main_loc3_Input = OpVariable %_ptr_Input_v4float Input |
| %void = OpTypeVoid |
| %FragmentInputs = OpTypeStruct %int %uint %float %v4float |
| %17 = OpTypeFunction %void %FragmentInputs |
| %24 = OpTypeFunction %void |
| %main_inner = OpFunction %void None %17 |
| %inputs = OpFunctionParameter %FragmentInputs |
| %18 = OpLabel |
| %i = OpCompositeExtract %int %inputs 0 |
| %u = OpCompositeExtract %uint %inputs 1 |
| %f = OpCompositeExtract %float %inputs 2 |
| %v = OpCompositeExtract %v4float %inputs 3 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %24 |
| %25 = OpLabel |
| %26 = OpLoad %int %main_loc0_Input None |
| %27 = OpLoad %uint %main_loc1_Input None |
| %28 = OpLoad %float %main_loc2_Input None |
| %29 = OpLoad %v4float %main_loc3_Input None |
| %30 = OpCompositeConstruct %FragmentInputs %26 %27 %28 %29 |
| %31 = OpFunctionCall %void %main_inner %30 |
| OpReturn |
| OpFunctionEnd |