MCPcopy Create free account
hub / github.com/Kitware/VTK / ProcessEvents

Method ProcessEvents

Rendering/WebGPU/vtkWebGPUConfiguration.cxx:627–644  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

625
626//------------------------------------------------------------------------------
627void vtkWebGPUConfiguration::ProcessEvents()
628{
629#if defined(__EMSCRIPTEN__)
630 vtkWebGPUConfigurationInternals::Instance.ProcessEvents();
631 if (emscripten_has_asyncify())
632 {
633 // gives a chance for webgpu callback code to execute
634 emscripten_sleep(1);
635 }
636 else
637 {
638 vtkErrorMacro(<< "This build of VTK cannot run asynchronous javascript code synchronously."
639 "Please compile VTK with ASYNCIFY or JSPI.");
640 }
641#else
642 vtkWebGPUConfigurationInternals::Instance.ProcessEvents();
643#endif
644}
645
646//------------------------------------------------------------------------------
647vtkWebGPUConfiguration::BackendType vtkWebGPUConfiguration::GetBackendInUse()

Callers 5

FrameMethod · 0.45
WaitForCompletionMethod · 0.45
UpdateMethod · 0.45
TestComputeTriangulationFunction · 0.45

Calls

no outgoing calls