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 %i "i" |
| 11 | OpName %main "main" |
| 12 | OpName %unused_entry_point "unused_entry_point" |
| 13 | %int = OpTypeInt 32 1 |
| 14 | %_ptr_Private_int = OpTypePointer Private %int |
| 15 | %int_0 = OpConstant %int 0 |
| 16 | %i = OpVariable %_ptr_Private_int Private %int_0 |
| 17 | %void = OpTypeVoid |
| 18 | %7 = OpTypeFunction %void |
| 19 | %int_1 = OpConstant %int 1 |
| 20 | %main = OpFunction %void None %7 |
| 21 | %8 = OpLabel |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 22 | %9 = OpLoad %int %i None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 23 | %10 = OpISub %int %9 %int_1 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 24 | OpStore %i %10 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 25 | OpReturn |
| 26 | OpFunctionEnd |
| 27 | %unused_entry_point = OpFunction %void None %7 |
| 28 | %13 = OpLabel |
| 29 | OpReturn |
| 30 | OpFunctionEnd |