|
Blender V4.5
|
#include <vk_render_graph.hh>
Inherits blender::NonCopyable.
Public Member Functions | |
| VKRenderGraph (VKResourceStateTracker &resources) | |
| NodeHandle | next_node_handle () |
| bool | is_empty () |
| void | reset () |
| void | memstats () const |
Debug | |
| void | debug_group_begin (const char *name, const ColorTheme4f &color) |
| void | debug_group_end () |
| std::string | full_debug_group (NodeHandle node_handle) const |
| void | debug_print (NodeHandle node_handle) const |
| Public Member Functions inherited from blender::NonCopyable | |
| NonCopyable (const NonCopyable &other)=delete | |
| NonCopyable & | operator= (const NonCopyable &other)=delete |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable &&other)=default | |
| NonCopyable & | operator= (NonCopyable &&other)=default |
Public Attributes | |
| VKSubmissionID | submission_id |
Friends | |
| class | VKCommandBuilder |
| class | VKScheduler |
Definition at line 65 of file vk_render_graph.hh.
| blender::gpu::render_graph::VKRenderGraph::VKRenderGraph | ( | VKResourceStateTracker & | resources | ) |
Construct a new render graph instance.
To improve testability the command buffer and resources they work on are provided as a parameter.
Definition at line 16 of file vk_render_graph.cc.
References submission_id.
| void blender::gpu::render_graph::VKRenderGraph::debug_group_begin | ( | const char * | name, |
| const ColorTheme4f & | color ) |
Push a new debugging group to the stack with the given name.
New nodes added to the render graph will be associated with this debug group.
Definition at line 68 of file vk_render_graph.cc.
Referenced by blender::gpu::VKContext::debug_group_begin().
| void blender::gpu::render_graph::VKRenderGraph::debug_group_end | ( | ) |
Pop the top of the debugging group stack.
New nodes added to the render graph will be associated with the parent of the current debug group.
Definition at line 81 of file vk_render_graph.cc.
Referenced by blender::gpu::VKContext::debug_group_end().
| void blender::gpu::render_graph::VKRenderGraph::debug_print | ( | NodeHandle | node_handle | ) | const |
Definition at line 87 of file vk_render_graph.cc.
References blender::gpu::render_graph::VKRenderGraphLink::debug_print(), blender::gpu::render_graph::VKRenderGraphNodeLinks::inputs, blender::gpu::render_graph::VKRenderGraphNodeLinks::outputs, and blender::gpu::render_graph::VKRenderGraphNode::type.
| std::string blender::gpu::render_graph::VKRenderGraph::full_debug_group | ( | NodeHandle | node_handle | ) | const |
Return the full debug group of the given node_handle. Returns an empty string when debug groups are not enabled (--debug-gpu).
Definition at line 109 of file vk_render_graph.cc.
References G, and G_DEBUG_GPU.
|
inline |
Definition at line 241 of file vk_render_graph.hh.
| void blender::gpu::render_graph::VKRenderGraph::memstats | ( | ) | const |
|
inline |
Utility function that is used during debugging.
When debugging most of the time know the node_handle that is needed after the node has been constructed. When haunting a bug it is more useful to query what the next node handle will be so you can step through the node building process.
Definition at line 236 of file vk_render_graph.hh.
| void blender::gpu::render_graph::VKRenderGraph::reset | ( | ) |
Reset the render graph.
Definition at line 21 of file vk_render_graph.cc.
References memstats(), and submission_id.
|
friend |
Definition at line 66 of file vk_render_graph.hh.
References VKCommandBuilder.
Referenced by VKCommandBuilder.
|
friend |
Definition at line 67 of file vk_render_graph.hh.
References BLI_STRUCT_EQUALITY_OPERATORS_2, hash, and VKScheduler.
Referenced by VKScheduler.
| VKSubmissionID blender::gpu::render_graph::VKRenderGraph::submission_id |
Definition at line 126 of file vk_render_graph.hh.
Referenced by reset(), and VKRenderGraph().