Description
see #29341 (comment)
WebGPURenderer.readRenderTargetPixelsAsync() creates a new buffer for each call. The idea is to find a solution to define a buffer once and reuse it.
Solution
Use the same approach of getArrayBufferAsync() in readRenderTargetPixelsAsync(). The PRs #33300 and #33322 introduced ReadbackBuffer.
Alternatives
Additional context
#29341
Description
see #29341 (comment)
WebGPURenderer.readRenderTargetPixelsAsync()creates a new buffer for each call. The idea is to find a solution to define a buffer once and reuse it.Solution
Use the same approach of
getArrayBufferAsync()inreadRenderTargetPixelsAsync(). The PRs #33300 and #33322 introducedReadbackBuffer.Alternatives
Additional context
#29341