| 29 | } |
| 30 | |
| 31 | void EngineWorker::setImageResource(void* image) |
| 32 | { |
| 33 | GLuint imageId = reinterpret_cast<uintptr_t>(image); |
| 34 | _imageResource = imageId; |
| 35 | |
| 36 | if (_simulationCudaFacade) { |
| 37 | EngineWorkerGuard access(this); |
| 38 | _cudaResource = _simulationCudaFacade->registerImageResource(imageId); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | std::string EngineWorker::getGpuName() const |
| 43 | { |
no test coverage detected