()
| 959 | } |
| 960 | |
| 961 | dispose(): void { |
| 962 | this.deviceLostIsError = false; // prevent dispose to trigger device.lost error |
| 963 | // order matters |
| 964 | // dispose caches before ctx |
| 965 | this.cacheState.dispose(); |
| 966 | // ctx release goes back into lib. |
| 967 | this.ctx.dispose(); |
| 968 | this.lib.dispose(); |
| 969 | // Cannot set deviceLostIsError back to true here because GPUDevice.destroy() is asynchronous. |
| 970 | } |
| 971 | |
| 972 | /** |
| 973 | * Obtain the runtime information in readable format. |
no outgoing calls
no test coverage detected