Action fired when asynchronous operation has been synchronized with a GPU
| 103 | /// Action fired when asynchronous operation has been synchronized with a GPU |
| 104 | /// </summary> |
| 105 | void Sync() |
| 106 | { |
| 107 | if (_context != nullptr) |
| 108 | { |
| 109 | ASSERT(IsSyncing()); |
| 110 | |
| 111 | // Sync and finish |
| 112 | _context = nullptr; |
| 113 | OnSync(); |
| 114 | OnFinish(); |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | /// <summary> |
| 119 | /// Cancels the task results synchronization. |