chore: clarify planning acceptance semantics

This commit is contained in:
2026-07-04 01:50:59 +04:00
parent 0c54142ad5
commit 08550849c7
5 changed files with 175 additions and 29 deletions
+5
View File
@@ -389,6 +389,11 @@ pub trait RenderBackend {
fn execute(&mut self, commands: &RenderCommandList) -> Result<FrameOutput, RenderError>;
}
/// Marker trait for backends that execute draws against a live GPU.
///
/// Planning and capture-only backends must not implement this trait.
pub trait GpuRenderBackend: RenderBackend {}
/// Backend that validates commands and intentionally produces no pixels.
#[derive(Clone, Debug, Default)]
pub struct NullBackend;