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

Method WriteBuffer

Rendering/WebGPU/vtkWebGPUConfiguration.cxx:862–875  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

860
861//------------------------------------------------------------------------------
862void vtkWebGPUConfiguration::WriteBuffer(const wgpu::Buffer& buffer, unsigned long offset,
863 const void* data, unsigned long sizeBytes, const char* description /*= nullptr*/)
864{
865 auto& internals = (*this->Internals);
866 if (!internals.DeviceReady)
867 {
868 vtkWarningMacro(<< "Cannot write data into buffer because device is not ready.");
869 return;
870 }
871 vtkVLog(this->GetGPUMemoryLogVerbosity(),
872 "Write buffer {description: \"" << (description ? description : "null")
873 << "\", offset: " << offset << ", size: " << sizeBytes << "}");
874 internals.Device.GetQueue().WriteBuffer(buffer, offset, data, sizeBytes);
875}
876
877//------------------------------------------------------------------------------
878wgpu::Texture vtkWebGPUConfiguration::CreateTexture(wgpu::Extent3D extents,

Callers 15

WriteLightsBufferMethod · 0.45
RenderMethod · 0.45
WriteBufferDataMethod · 0.45
operator()Method · 0.45
WriteBufferFunction · 0.45
operator()Method · 0.45

Calls 1

Tested by

no test coverage detected