()
| 287 | } |
| 288 | |
| 289 | submitQueue() { |
| 290 | this.queue.submit([this.commandEncoder.finish()]); |
| 291 | this.commandEncoder = null; |
| 292 | this.dispatchCountInPass = 0; |
| 293 | |
| 294 | this.commandQueueOwnedIds = new WeakSet<DataId>(); |
| 295 | |
| 296 | this.tensorDataPendingDisposal.forEach(d => { |
| 297 | this.releaseResource(d); |
| 298 | this.tensorMap.delete(d); |
| 299 | }); |
| 300 | |
| 301 | this.uniformPendingDisposal.forEach( |
| 302 | b => this.bufferManager.releaseBuffer(b)); |
| 303 | this.stagingPendingDisposal.forEach( |
| 304 | b => this.bufferManager.releaseBuffer(b, false)); |
| 305 | |
| 306 | this.tensorDataPendingDisposal = []; |
| 307 | this.uniformPendingDisposal = []; |
| 308 | this.stagingPendingDisposal = []; |
| 309 | } |
| 310 | |
| 311 | ensureCommandEncoderReady() { |
| 312 | if (!this.commandEncoder) { |
no test coverage detected