feat(render-graph): Implement Lua-based render graph system

- Added render graph configuration to JSON files and runtime settings.
- Introduced RenderGraphScriptService to load and manage render graph definitions from Lua.
- Updated GraphicsService to handle render graph definitions.
- Enhanced cube_logic.lua with a sample render graph function.
- Modified various services and interfaces to support render graph functionality.
- Improved logging for render graph operations and configurations.
This commit is contained in:
2026-01-06 00:14:00 +00:00
parent 84cd9e4f46
commit 01f1e94994
19 changed files with 795 additions and 13 deletions

View File

@@ -40,3 +40,19 @@ end
function compute_model_matrix(time)
return identity_matrix()
end
function get_render_graph()
return {
resources = {
scene_hdr = {type = "color", format = "rgba16f", size = "swapchain"},
depth = {type = "depth", format = "d32", size = "swapchain"},
},
passes = {
{
name = "gbuffer",
kind = "gbuffer",
outputs = {color = "scene_hdr", depth = "depth"},
},
},
}
end