engine icon indicating copy to clipboard operation
engine copied to clipboard

Add WebGPU support to the Picker

Open mvaligursky opened this issue 1 year ago • 0 comments

Picker renders mesh indices to the texture during preparation. When picking, a rectangle of this rendered texture is copied back to the CPU, and indices are used to identify mesh instances.

This is currently a synchronous process. The API needs to be changed to be async, allowing async texture readback on WebGPU. Related task to implement this part: https://github.com/playcanvas/engine/issues/2974

mvaligursky avatar Jan 30 '24 16:01 mvaligursky