Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 758 Bytes

File metadata and controls

28 lines (16 loc) · 758 Bytes

Storage Buffers Compute

Showcase of getting data into and out of GLSL compute shaders using Push Constants, Specialization Constants and Storage Buffers in Godot.

See https://1hue.dev/storage-buffers-compute-shaders-godot for further reading.


Example use of Specialization Constants — which are more efficient than Push Constants for input data that need not change during runtime — is included.

UI that demonstrates the concepts:

Screenshot

Scripts of interest:

Compatibility

Tested with:

  • Godot 4.5
  • Godot 4.4
  • Vulkan API

Compute shaders are not supported in WebGL/Compatibility mode.