Implement native SimpleRenderer reference pipeline (#76)
Some checks failed
Native code generation / deterministic (push) Failing after 2m7s
Imaging and meshing gate / native (push) Failing after 4m9s
JPEG 2000 feature / linux (push) Successful in 2m55s
Native Rust workspace compile / compile (push) Failing after 6m15s
Skia feature / linux (push) Successful in 30m59s

This commit is contained in:
2026-08-10 21:50:59 +00:00
parent fdda05b53f
commit 611db567a0
16 changed files with 1306 additions and 37 deletions

View File

@@ -68,6 +68,13 @@ pub enum Error {
HttpRequest,
/// A host lookup or socket operation failed.
Socket,
/// Rendering failed while processing one source object at a named stage.
Rendering {
/// UUID of the primitive whose geometry could not be produced.
source: crate::UUID,
/// Stable stage suitable for diagnostics and fixture assertions.
context: &'static str,
},
}
impl Error {
@@ -83,7 +90,8 @@ impl Error {
| Self::Parse { .. }
| Self::Cancelled
| Self::HttpRequest
| Self::Socket => None,
| Self::Socket
| Self::Rendering { .. } => None,
}
}
}
@@ -110,6 +118,9 @@ impl fmt::Display for Error {
Self::Cancelled => formatter.write_str("operation was cancelled"),
Self::HttpRequest => formatter.write_str("HTTP request failed"),
Self::Socket => formatter.write_str("socket operation failed"),
Self::Rendering { source, context } => {
write!(formatter, "rendering object {source} failed: {context}")
}
}
}
}