MCPcopy Create free account
hub / github.com/chrxh/alien / setImageResource

Method setImageResource

source/EngineImpl/EngineWorker.cpp:31–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void 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
42std::string EngineWorker::getGpuName() const
43{

Callers 1

resizeMethod · 0.45

Calls 1

registerImageResourceMethod · 0.80

Tested by

no test coverage detected