James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 4 | ; Bound: 32 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 8 | OpEntryPoint Fragment %main "main" %loc0_1 %loc1_1 %loc2_1 %loc3_1 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 9 | OpExecutionMode %main OriginUpperLeft |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 10 | OpName %loc0_1 "loc0_1" |
| 11 | OpName %loc1_1 "loc1_1" |
| 12 | OpName %loc2_1 "loc2_1" |
| 13 | OpName %loc3_1 "loc3_1" |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 14 | OpName %FragmentInputs "FragmentInputs" |
| 15 | OpMemberName %FragmentInputs 0 "loc0" |
| 16 | OpMemberName %FragmentInputs 1 "loc1" |
| 17 | OpMemberName %FragmentInputs 2 "loc2" |
| 18 | OpMemberName %FragmentInputs 3 "loc3" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 19 | OpName %main_inner "main_inner" |
| 20 | OpName %inputs "inputs" |
| 21 | OpName %main "main" |
| 22 | OpDecorate %loc0_1 Location 0 |
| 23 | OpDecorate %loc0_1 Flat |
| 24 | OpDecorate %loc1_1 Location 1 |
| 25 | OpDecorate %loc1_1 Flat |
| 26 | OpDecorate %loc2_1 Location 2 |
| 27 | OpDecorate %loc3_1 Location 3 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 28 | OpMemberDecorate %FragmentInputs 0 Offset 0 |
| 29 | OpMemberDecorate %FragmentInputs 1 Offset 4 |
| 30 | OpMemberDecorate %FragmentInputs 2 Offset 8 |
| 31 | OpMemberDecorate %FragmentInputs 3 Offset 16 |
| 32 | %int = OpTypeInt 32 1 |
| 33 | %_ptr_Input_int = OpTypePointer Input %int |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 34 | %loc0_1 = OpVariable %_ptr_Input_int Input |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 35 | %uint = OpTypeInt 32 0 |
| 36 | %_ptr_Input_uint = OpTypePointer Input %uint |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 37 | %loc1_1 = OpVariable %_ptr_Input_uint Input |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 38 | %float = OpTypeFloat 32 |
| 39 | %_ptr_Input_float = OpTypePointer Input %float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 40 | %loc2_1 = OpVariable %_ptr_Input_float Input |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 41 | %v4float = OpTypeVector %float 4 |
| 42 | %_ptr_Input_v4float = OpTypePointer Input %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 43 | %loc3_1 = OpVariable %_ptr_Input_v4float Input |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 44 | %void = OpTypeVoid |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 45 | %FragmentInputs = OpTypeStruct %int %uint %float %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 46 | %13 = OpTypeFunction %void %FragmentInputs |
| 47 | %23 = OpTypeFunction %void |
| 48 | %main_inner = OpFunction %void None %13 |
| 49 | %inputs = OpFunctionParameter %FragmentInputs |
| 50 | %18 = OpLabel |
| 51 | %19 = OpCompositeExtract %int %inputs 0 |
| 52 | %20 = OpCompositeExtract %uint %inputs 1 |
| 53 | %21 = OpCompositeExtract %float %inputs 2 |
| 54 | %22 = OpCompositeExtract %v4float %inputs 3 |
| 55 | OpReturn |
| 56 | OpFunctionEnd |
| 57 | %main = OpFunction %void None %23 |
| 58 | %25 = OpLabel |
| 59 | %27 = OpLoad %int %loc0_1 |
| 60 | %28 = OpLoad %uint %loc1_1 |
| 61 | %29 = OpLoad %float %loc2_1 |
| 62 | %30 = OpLoad %v4float %loc3_1 |
| 63 | %31 = OpCompositeConstruct %FragmentInputs %27 %28 %29 %30 |
| 64 | %26 = OpFunctionCall %void %main_inner %31 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 65 | OpReturn |
| 66 | OpFunctionEnd |