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

Method Update

Rendering/WebGPU/vtkWebGPUComputePipeline.cxx:143–164  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

141
142//------------------------------------------------------------------------------
143void vtkWebGPUComputePipeline::Update()
144{
145 this->EnsureConfigured();
146
147 wgpu::QueueWorkDoneStatus workStatus = wgpu::QueueWorkDoneStatus::Error;
148 bool done = false;
149 this->WGPUConfiguration->GetDevice().GetQueue().OnSubmittedWorkDone(
150 wgpu::CallbackMode::AllowProcessEvents,
151 [&workStatus, &done](wgpu::QueueWorkDoneStatus status, wgpu::StringView)
152 {
153 workStatus = status;
154 done = true;
155 });
156 while (!done)
157 {
158 this->WGPUConfiguration->ProcessEvents();
159 }
160 if (workStatus != wgpu::QueueWorkDoneStatus::Success)
161 {
162 vtkErrorMacro(<< "Submitted work did not complete!");
163 }
164}
165
166//------------------------------------------------------------------------------
167void vtkWebGPUComputePipeline::EnsureConfigured()

Callers 9

CullMethod · 0.45
RenderPieceMethod · 0.45
ComputeBoundsMethod · 0.45
GetZbufferDataMethod · 0.45
CullMethod · 0.45
ComputeBoundsMethod · 0.45

Calls 3

EnsureConfiguredMethod · 0.95
GetDeviceMethod · 0.45
ProcessEventsMethod · 0.45

Tested by

no test coverage detected