#Compute shader texture flickering squares

4 messages · Page 1 of 1 (latest)

small storm
#

I've got a project (bug repo: [DELETED]) based on an old version of the game of life compute shader example. I was having "flickering" issues with my texture rendered to a sprite and I've tried lots of debugging but I can't fix it. I've deleted most of the code for the bug repo above which is now simply writing pink to the texture.

I'm a rendering/shader noob so it's hopefully something simple or a general misunderstanding from my end.

I've tried multiple textures (swapping out the binding layout each frame, similar to the GoL compute example). I've also played with swapping the texture in FixedUpdate and lots of similar variations. Initially I thought the swapping was causing the issue!

Thanks in advance! MacOS if that helps.

small storm
#

Relevant files:

assets/shader.wgsl
src/game/level/shader.rs
sly bramble
small storm
#

Setting it to black exposes the issue, but I think the issue is there regardless. Not sure where to go from here :/