Render graph: better way to import swapchain image #20

Open
opened 2026-06-26 10:26:09 +00:00 by lesley · 0 comments
Owner

Currently to import the swapchain image to the render graph, I need to do something like this every time:

    auto render_graph_swapchain_image = render_graph_.import_image(
        "Swapchain Image", charlie::RenderGraphImageInfo{.image = swapchain().current_image(),
                                                         .view = swapchain().current_image_view(),
                                                         .extent = window().resolution().to_3d(),
                                                         .format = swapchain().image_format()});

This is ugly and also error-prone.

Currently to import the swapchain image to the render graph, I need to do something like this every time: ```cpp auto render_graph_swapchain_image = render_graph_.import_image( "Swapchain Image", charlie::RenderGraphImageInfo{.image = swapchain().current_image(), .view = swapchain().current_image_view(), .extent = window().resolution().to_3d(), .format = swapchain().image_format()}); ``` This is ugly and also error-prone.
lesley added this to the Charlie3D project 2026-06-26 10:26:09 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lesley/Charlie3D#20
No description provided.