Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
511 stars 121 forks source link

Kinc can't use a 3d image with compute shaders #843

Closed e2002e closed 7 months ago

e2002e commented 7 months ago

Compute shaders can't write to 3d images.

I've change the computeSample's code to make use of 3Dimage: https://github.com/e2002e/ComputeShader

Debian 12 compiled with node/Kha/make.js -g opengl Kinc commit b7c0b9a0

e2002e commented 7 months ago

Actually I was writing to a 3D image and still reading from a 2D sampler, changing this to 3D sampler I was able to run the computeShader without issue.