------------------------------------------------------------------------------
| 860 | |
| 861 | //------------------------------------------------------------------------------ |
| 862 | void 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 | //------------------------------------------------------------------------------ |
| 878 | wgpu::Texture vtkWebGPUConfiguration::CreateTexture(wgpu::Extent3D extents, |
no test coverage detected