Ben Clayton | d123267 | 2021-05-18 09:24:18 +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: 25 |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +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" %value |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +0000 | [diff] [blame] | 9 | OpExecutionMode %main OriginUpperLeft |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 10 | OpName %value "value" |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +0000 | [diff] [blame] | 11 | OpName %bar "bar" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 12 | OpName %main_inner "main_inner" |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +0000 | [diff] [blame] | 13 | OpName %a "a" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 14 | OpName %main "main" |
| 15 | OpDecorate %value Location 0 |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +0000 | [diff] [blame] | 16 | %float = OpTypeFloat 32 |
| 17 | %v4float = OpTypeVector %float 4 |
| 18 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 19 | %5 = OpConstantNull %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 20 | %value = OpVariable %_ptr_Output_v4float Output %5 |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +0000 | [diff] [blame] | 21 | %void = OpTypeVoid |
| 22 | %6 = OpTypeFunction %void |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 23 | %10 = OpTypeFunction %v4float |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +0000 | [diff] [blame] | 24 | %v2float = OpTypeVector %float 2 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 25 | %14 = OpConstantNull %v2float |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +0000 | [diff] [blame] | 26 | %_ptr_Function_v2float = OpTypePointer Function %v2float |
| 27 | %float_0_400000006 = OpConstant %float 0.400000006 |
| 28 | %float_0_800000012 = OpConstant %float 0.800000012 |
| 29 | %float_1 = OpConstant %float 1 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 30 | %21 = OpConstantComposite %v4float %float_0_400000006 %float_0_400000006 %float_0_800000012 %float_1 |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +0000 | [diff] [blame] | 31 | %bar = OpFunction %void None %6 |
| 32 | %9 = OpLabel |
| 33 | OpReturn |
| 34 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 35 | %main_inner = OpFunction %v4float None %10 |
| 36 | %12 = OpLabel |
| 37 | %a = OpVariable %_ptr_Function_v2float Function %14 |
| 38 | OpStore %a %14 |
| 39 | %17 = OpFunctionCall %void %bar |
| 40 | OpReturnValue %21 |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +0000 | [diff] [blame] | 41 | OpFunctionEnd |
| 42 | %main = OpFunction %void None %6 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 43 | %23 = OpLabel |
| 44 | %24 = OpFunctionCall %v4float %main_inner |
| 45 | OpStore %value %24 |
Ben Clayton | d123267 | 2021-05-18 09:24:18 +0000 | [diff] [blame] | 46 | OpReturn |
| 47 | OpFunctionEnd |