Page 1 of 1

Compute shaders support

Posted: Sun Oct 31, 2021 11:42 am
by newos20
Hi !
I'm new to love2d, and I wondered if there was a way to use compute shaders in it.
Does someone know if it is possible, or if there is a way to "hack" love2d to support them ?
Thanks

Re: Compute shaders support

Posted: Sun Oct 31, 2021 12:40 pm
by GVovkiv

Re: Compute shaders support

Posted: Sun Oct 31, 2021 1:49 pm
by newos20
I had already seen it, but this is only about vertex and pixel shaders, not compute shaders.

Re: Compute shaders support

Posted: Sun Oct 31, 2021 4:45 pm
by slime
love 12 will support compute shaders - you can find a prerelease build with them here (you might need to be logged into github) https://github.com/love2d/love/actions/ ... #artifacts

APIs aren't documented aside from in commit messages yet. A couple people in the discord server have made small examples if you're interested.

Changes needed for compute shaders and to read and write useful data for them are large enough that it's not feasible to hack it into love 11's codebase.

Re: Compute shaders support

Posted: Sun Oct 31, 2021 8:32 pm
by newos20
Ok, that's nice.
Thank you !

Re: Compute shaders support

Posted: Fri Mar 24, 2023 4:22 pm
by tourgen
Fantastic news!