Compute Shader - cannot manage to write to the texture

For the next game, I am researching compute shaders in Defold.
Although I wasn’t able to even run the build from MacOS (m3) (I did switch to Vulkan in appmanifest, but couldn’t get rid of errors), but I was able to run the build from Windows with OpenGL without errors.

Everything runs, but the texture is not changed after dispatching the compute shader.
I have created a minimal repository to test writing solid colour to a texture from a compute shader: GitHub - BigButton-Co/compute_test

Do you know if it’s a bug or if I am missing something?

1 Like

Can you try this example to see if it works on your setup? It should be compatible with latest 1.9.9 that is in beta now, which also uses vulkan by default on osx.

1 Like

Both 1.9.8 and 1.9.9 beta version resulted in black screen on Windows

1 Like

Could you try on osx as well? I don’t have a windows machine available right now.

For version 1.9.9 it works on osx (arm)

1 Like

Ok thank you, I’ll have to take a look at why windows doesn’t work. Im guessing it’s OpenGL related but not sure. It you are up for it, can you try with vulkan on windows?

You are right, it seems to be related to OpenGL, on version 1.9.9 it works on Windows when using Vulkan, but not when using OpenGL

Ok thanks for testing! It’s probably a silly mistake, I’ll take a look when I’m back from GDC

1 Like

Glad to help, thank you as well :slight_smile:

Could you please create an issue on GitHub so that we can track this?