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: 50 |
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 %main0 "main0" %value |
| 9 | OpEntryPoint Fragment %main1 "main1" %value_1 |
| 10 | OpEntryPoint Fragment %main2 "main2" %value_2 |
| 11 | OpEntryPoint Fragment %main3 "main3" %value_3 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 12 | OpExecutionMode %main0 OriginUpperLeft |
| 13 | OpExecutionMode %main1 OriginUpperLeft |
| 14 | OpExecutionMode %main2 OriginUpperLeft |
| 15 | OpExecutionMode %main3 OriginUpperLeft |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 16 | OpName %value "value" |
| 17 | OpName %value_1 "value_1" |
| 18 | OpName %value_2 "value_2" |
| 19 | OpName %value_3 "value_3" |
| 20 | OpName %main0_inner "main0_inner" |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 21 | OpName %main0 "main0" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 22 | OpName %main1_inner "main1_inner" |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 23 | OpName %main1 "main1" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 24 | OpName %main2_inner "main2_inner" |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 25 | OpName %main2 "main2" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 26 | OpName %main3_inner "main3_inner" |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 27 | OpName %main3 "main3" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 28 | OpDecorate %value Location 0 |
| 29 | OpDecorate %value_1 Location 1 |
| 30 | OpDecorate %value_2 Location 2 |
| 31 | OpDecorate %value_3 Location 3 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 32 | %int = OpTypeInt 32 1 |
| 33 | %_ptr_Output_int = OpTypePointer Output %int |
| 34 | %4 = OpConstantNull %int |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 35 | %value = OpVariable %_ptr_Output_int Output %4 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 36 | %uint = OpTypeInt 32 0 |
| 37 | %_ptr_Output_uint = OpTypePointer Output %uint |
| 38 | %8 = OpConstantNull %uint |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 39 | %value_1 = OpVariable %_ptr_Output_uint Output %8 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 40 | %float = OpTypeFloat 32 |
| 41 | %_ptr_Output_float = OpTypePointer Output %float |
| 42 | %12 = OpConstantNull %float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 43 | %value_2 = OpVariable %_ptr_Output_float Output %12 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 44 | %v4float = OpTypeVector %float 4 |
| 45 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 46 | %16 = OpConstantNull %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 47 | %value_3 = OpVariable %_ptr_Output_v4float Output %16 |
| 48 | %17 = OpTypeFunction %int |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 49 | %int_1 = OpConstant %int 1 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 50 | %void = OpTypeVoid |
| 51 | %21 = OpTypeFunction %void |
| 52 | %26 = OpTypeFunction %uint |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 53 | %uint_1 = OpConstant %uint 1 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 54 | %33 = OpTypeFunction %float |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 55 | %float_1 = OpConstant %float 1 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 56 | %40 = OpTypeFunction %v4float |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 57 | %float_2 = OpConstant %float 2 |
| 58 | %float_3 = OpConstant %float 3 |
| 59 | %float_4 = OpConstant %float 4 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 60 | %46 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4 |
| 61 | %main0_inner = OpFunction %int None %17 |
| 62 | %19 = OpLabel |
| 63 | OpReturnValue %int_1 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 64 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 65 | %main0 = OpFunction %void None %21 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 66 | %24 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 67 | %25 = OpFunctionCall %int %main0_inner |
| 68 | OpStore %value %25 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 69 | OpReturn |
| 70 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 71 | %main1_inner = OpFunction %uint None %26 |
| 72 | %28 = OpLabel |
| 73 | OpReturnValue %uint_1 |
| 74 | OpFunctionEnd |
| 75 | %main1 = OpFunction %void None %21 |
| 76 | %31 = OpLabel |
| 77 | %32 = OpFunctionCall %uint %main1_inner |
| 78 | OpStore %value_1 %32 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 79 | OpReturn |
| 80 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 81 | %main2_inner = OpFunction %float None %33 |
| 82 | %35 = OpLabel |
| 83 | OpReturnValue %float_1 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 84 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 85 | %main2 = OpFunction %void None %21 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 86 | %38 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 87 | %39 = OpFunctionCall %float %main2_inner |
| 88 | OpStore %value_2 %39 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 89 | OpReturn |
| 90 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 91 | %main3_inner = OpFunction %v4float None %40 |
| 92 | %42 = OpLabel |
| 93 | OpReturnValue %46 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 94 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 95 | %main3 = OpFunction %void None %21 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 96 | %48 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 97 | %49 = OpFunctionCall %v4float %main3_inner |
| 98 | OpStore %value_3 %49 |
James Price | bb0496e | 2021-06-03 09:38:34 +0000 | [diff] [blame] | 99 | OpReturn |
| 100 | OpFunctionEnd |