Skip to content
Snippets Groups Projects
Forked from VTK / VTK
458 commits behind the upstream repository.
  • Jaswant Panchumarti (Kitware)'s avatar
    0849386d
    Refactor color attachment and depth stencil setup · 0849386d
    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`.
    0849386d
    History
    Refactor color attachment and depth stencil setup
    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