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 |
| 4 | ; Bound: 14 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| 9 | OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| 10 | OpName %main "main" |
| 11 | OpName %i "i" |
| 12 | OpName %unused_entry_point "unused_entry_point" |
| 13 | %void = OpTypeVoid |
| 14 | %3 = OpTypeFunction %void |
| 15 | %int = OpTypeInt 32 1 |
| 16 | %_ptr_Function_int = OpTypePointer Function %int |
| 17 | %int_0 = OpConstant %int 0 |
| 18 | %int_1 = OpConstant %int 1 |
| 19 | %main = OpFunction %void None %3 |
| 20 | %4 = OpLabel |
| 21 | %i = OpVariable %_ptr_Function_int Function |
| 22 | OpStore %i %int_0 |
| 23 | %9 = OpLoad %int %i |
| 24 | %10 = OpISub %int %9 %int_1 |
| 25 | OpStore %i %10 |
| 26 | OpReturn |
| 27 | OpFunctionEnd |
| 28 | %unused_entry_point = OpFunction %void None %3 |
| 29 | %13 = OpLabel |
| 30 | OpReturn |
| 31 | OpFunctionEnd |