#Update transform position on GPU

8 messages · Page 1 of 1 (latest)

candid gyro
#

Is there any way to update a sprite position on GPU? I thought about sending position data to the gpu and then doing the update there, but the problem is that I need to get the data back somehow to actually update the sprite in the main world.

candid gyro
#

I actually don't need the data on ram at all, i just need to get it so that I can pass it to the extract render step next iteration. Is it possible that I create some data that lives solely on GPU?

lucid summit
#

why would you need that? Are you having performance issues?

candid gyro
#

It's mostly used for actually simulating

lucid summit
#

I think the most logical thing then is to create a custom compute node in the render graph. That will give you access to the wgpu api and is where you can create buffers

#

you look in the examples to see how it is done with a custom image, but a buffer shouldn't be that different

candid gyro