Skip to Content

Compute Shaders in Godot

Talk These are the slides and source samples for a talk I gave in March 2024 at the Bay Area Godot Meetup.

The “Using Compute Shaders” guide in the Godot Docs demonstrates how to run a compute shader on a local rendering server and rendering device. This approach is good for workloads that can run in the background, or during loading, but may not be suited for compute shaders that produce a visual effect.

Based on the structure of the “Compute Texture” demo project, this project demonstrates a method for running compute shaders using the global rendering device. Compute lists are tied to the render loop, and created textures can be attached to the scene tree and used in the rest of Godot’s rendering pipeline.

Sources and References

  1. “Diffraction Waves” (external link). Accessed 22 March 2023.
  2. Bastiaan Olij. “Compute Texture” (external link). Godot Demo Projects. Accessed 22 March 2023.
  3. “Using Compute Shaders” (external link). Godot Docs. Accessed 22 March 2023.