mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-24 13:44:58 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user