MCPcopy Create free account
hub / github.com/Kitware/VTK / operator()

Method operator()

Rendering/WebGPU/vtkWebGPUPolyDataMapper.cxx:146–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145 template <typename SrcArrayT>
146 void operator()(SrcArrayT* array, const char* description)
147 {
148 if (array == nullptr || this->DstBuffer.Get() == nullptr)
149 {
150 return;
151 }
152 const auto values = vtk::DataArrayValueRange(array);
153 vtkNew<vtkAOSDataArrayTemplate<DestT>> data;
154 for (const auto& value : values)
155 {
156 data->InsertNextValue(value / this->Denominator);
157 }
158 const std::size_t nbytes = data->GetNumberOfValues() * sizeof(DestT);
159 this->WGPUConfiguration->WriteBuffer(
160 this->DstBuffer, 0, data->GetPointer(0), nbytes, description);
161 }
162};
163}
164

Callers

nothing calls this directly

Calls 6

DataArrayValueRangeFunction · 0.85
GetMethod · 0.45
InsertNextValueMethod · 0.45
GetNumberOfValuesMethod · 0.45
WriteBufferMethod · 0.45
GetPointerMethod · 0.45

Tested by

no test coverage detected