Forked from
VTK / VTK
458 commits behind the upstream repository.
-
Jaswant Panchumarti (Kitware) authored
- The new `ReadTextureFromGPU` method is used to copy a `wgpu::Texture` into a `wgpu::Buffer`, then map the buffer to the CPU. The callback function will be invoked with the mapped data. - The GetPixelData(), GetRGBAPixelData() and GetRGBACharPixel() methods have all been refactored to now leverage `ReadTextureFromGPU`.
Jaswant Panchumarti (Kitware) authored- The new `ReadTextureFromGPU` method is used to copy a `wgpu::Texture` into a `wgpu::Buffer`, then map the buffer to the CPU. The callback function will be invoked with the mapped data. - The GetPixelData(), GetRGBAPixelData() and GetRGBACharPixel() methods have all been refactored to now leverage `ReadTextureFromGPU`.
CopyDepthTextureToBuffer.wgsl 627 B