pub struct TrainingPreviewFrame {
pub texture: Option<Texture>,
pub completion: Event,
pub label: String,
pub step: i64,
}Expand description
Immutable generated artifact handed from a training/evaluation producer to the viewer. The texture allocation is shared; the timeline event prevents presentation until the producing GPU batch has completed. Replacing a pending frame drops it without ever blocking the training owner.
Donor: oa::TrainingPreviewFrame.
Fields§
§texture: Option<Texture>Produced preview texture, required for publication.
completion: EventProducer completion event; the frame is promoted only when complete.
label: StringOptional frame label.
step: i64Training step that produced the frame.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TrainingPreviewFrame
impl !Send for TrainingPreviewFrame
impl !Sync for TrainingPreviewFrame
impl !UnwindSafe for TrainingPreviewFrame
impl Forget for TrainingPreviewFrame
impl Freeze for TrainingPreviewFrame
impl Move for TrainingPreviewFrame
impl Unpin for TrainingPreviewFrame
impl UnsafeUnpin for TrainingPreviewFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more