shader: let structurization own rollback on failure

This commit is contained in:
nmzik committed 2026-09-12 13:42:15 +04:00
1 parent 5a31de7955
commit e026bfc9a2
4 files changed
+62 -18

No files matched your search

@@ -110,6 +110,8 @@ struct Graph {
};
Graph BuildGraph(const Decoder::Program& program);
// Commits structured control flow on success; preserves the original graph with
// failure diagnostics on failure. failure_block is an original block ID or UINT32_MAX.
bool Structurize(Graph& graph);
std::string BranchConditionToString(BranchCondition condition);
std::string FailureKindToString(FailureKind kind);