media_pp\elements\sink\renderer/submit_error.rs
1/// Errors a `D3d12FrameRenderer`/`D3d11FrameRenderer` implementation can
2/// report. GPU-vendor-agnostic (no D3D11/D3D12-specific type in here), so
3/// it's shared by both instead of each defining its own copy — and left
4/// ungated (not behind either renderer feature) so it's a stable type to
5/// reference regardless of which one a caller actually enables.
6#[derive(Debug, Clone, Copy, PartialEq, Eq)]
7pub enum SubmitError {
8 NullBuffer,
9 InvalidFrame,
10 NoFreeSlot,
11 RendererStopped,
12 RenderFailed,
13 /// The GPU device is no longer valid (driver reset/removal). Recovery
14 /// requires recreating the whole rendering setup, not just retrying.
15 DeviceRemoved,
16}