dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
James Price | 74080ec | 2024-10-16 00:12:09 +0000 | [diff] [blame] | 4 | ; Bound: 15 |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint GLCompute %main "main" |
| 9 | OpExecutionMode %main LocalSize 1 1 1 |
| 10 | OpName %func "func" |
| 11 | OpName %pointer_root "pointer_root" |
| 12 | OpName %main "main" |
| 13 | OpName %F "F" |
| 14 | %void = OpTypeVoid |
| 15 | %float = OpTypeFloat 32 |
| 16 | %v4float = OpTypeVector %float 4 |
| 17 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 18 | %7 = OpTypeFunction %void %_ptr_Function_v4float |
James Price | 74080ec | 2024-10-16 00:12:09 +0000 | [diff] [blame] | 19 | %9 = OpConstantNull %v4float |
| 20 | %11 = OpTypeFunction %void |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 21 | %func = OpFunction %void None %7 |
| 22 | %pointer_root = OpFunctionParameter %_ptr_Function_v4float |
| 23 | %8 = OpLabel |
James Price | 74080ec | 2024-10-16 00:12:09 +0000 | [diff] [blame] | 24 | OpStore %pointer_root %9 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 25 | OpReturn |
| 26 | OpFunctionEnd |
James Price | 74080ec | 2024-10-16 00:12:09 +0000 | [diff] [blame] | 27 | %main = OpFunction %void None %11 |
| 28 | %12 = OpLabel |
| 29 | %F = OpVariable %_ptr_Function_v4float Function %9 |
| 30 | %14 = OpFunctionCall %void %func %F |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 31 | OpReturn |
| 32 | OpFunctionEnd |