Description
Changelog
Reviews
Compute Shader Plus
This plugin adds in a ComputeHelper class that keeps track of compute shaders and their uniforms. It's especially ideal for shaders that need to be run many times per second. Here are the main features:
- ComputeHelper - This class manages a compute shader. After being passed a set of uniforms, it will keep track of them and automatically bind them when necessary. It also allows you to run the shader with just one function call.
- Uniforms - The plugin comes with a set of Uniform classes for different datatypes, such as a StorageBufferUniform, an ImageUniform, and a VertexBufferUniform. It has functions that allow you to easily set or get data from the GPU. Plus, some of the Uniform classes have support for async loading between frames.
- RID Management - All RID's are handled internally by the provided classes. When using them as intended, you shouldn't have to worry about memory management or whether they're all valid.
Demos
I've made a few sample projects that use this plugin. They're open-source, so feel free to use them:
Also, make sure to check out the GitHub page for this plugin if you want a proper tutorial on how to start using it.
Other Resources
For more information on compute shaders in Godot 4, here are some useful resources:
Changelog for version 1.0.0
No changelog provided for this version.