#Updating a texture in place

4 messages · Page 1 of 1 (latest)

warm plinth
#

How can I update a texture in place? When I change the data attribute of Image directly it has no affect. I think this is because it doesn't know to call write_texture, but I'm not sure how to get around that. I can't call it manually since Image doesn't have any reference to the underlying WGPU texture. I noticed GpuImage which does have a reference but I'm not sure how I'm supposed to access it.

finite drift
#

You need to swap the handle

#

You can drop jpgs etc onto shadplay and it'll swap them to the image texture when you hit 1, 2 ,3 et.