Using Texture2DRD with Compute Shaders in Godot
Автор: The Pathfinders Codex
Загружено: 2026-01-13
Просмотров: 690
Описание:
How to use the Texture2DRD object to enhance compute shader visualizations and simulations in Godot!
This advanced tutorial covers the steps to take a basic compute shader and supercharge it using Texture2DRD.
Includes details on using it with the Godot main rendering device and the rendering thread.
This isn't the only use for Texture2DRD, but it fits great with the work we're doing on the channel.
Most of the simulation projects on GitHub have been updated with this technique - improving framerates by over 2x (in some cases). There is still a memory leak that I need to fix because I'm not clearing RIDs so watch for that.
https://github.com/ThePathfindersCodex/
Hope you enjoy.
00:00 Why This Matters
01:35 The GPU-Only Pipeline
02:34 RenderingDevice vs Local RenderingDevice
03:56 Introducing Texture2DRD
04:47 Texture Creation for Compute + Display
06:05 Binding the Texture to a Compute Shader
06:36 Running Compute on the Render Thread
07:52 Displaying the GPU Texture
08:41 Payoff and Pitfalls
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: