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

Method CreateCommandEncoder

Rendering/WebGPU/vtkWebGPURenderWindow.cxx:303–318  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

301
302//------------------------------------------------------------------------------
303void vtkWebGPURenderWindow::CreateCommandEncoder()
304{
305 vtkWebGPUCheckUnconfigured(this);
306 wgpu::CommandEncoderDescriptor encDesc = {};
307 std::stringstream label;
308 encDesc.label = "vtkWebGPURenderWindow::CommandEncoder";
309 if (auto device = this->WGPUConfiguration->GetDevice())
310 {
311 this->CommandEncoder = device.CreateCommandEncoder(&encDesc);
312 }
313 else
314 {
315 vtkErrorMacro(
316 << "Cannot create a command encoder because a WebGPU device has not been initialized!");
317 }
318}
319
320//------------------------------------------------------------------------------
321void vtkWebGPURenderWindow::InitializeRendererComputePipelines()

Callers 4

StartMethod · 0.95
FrameMethod · 0.95
ReadTextureFromGPUMethod · 0.45

Calls 1

GetDeviceMethod · 0.45

Tested by

no test coverage detected