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