pub struct WgpuSnapshotTarget { /* private fields */ }Expand description
Frozen association of one viewport with an executor’s target-resource generation.
This is pure Send + Sync metadata. It owns no native window, Surface, texture, or GPU lease.
Host code must retain those resources while recording and submitting their commands.
ⓘ
use dear_imgui_wgpu::WgpuSnapshotTarget;
let forged = WgpuSnapshotTarget { resource_generation: std::num::NonZeroU64::MIN };Implementations§
Source§impl WgpuSnapshotTarget
impl WgpuSnapshotTarget
Sourcepub const fn viewport_id(self) -> Id
pub const fn viewport_id(self) -> Id
Captured viewport routing identity.
Sourcepub const fn native_target(self) -> Option<NativeWindowTarget>
pub const fn native_target(self) -> Option<NativeWindowTarget>
Exact native registration, when supplied by the host integration.
Sourcepub const fn resource_generation(self) -> NonZeroU64
pub const fn resource_generation(self) -> NonZeroU64
Monotonic resource identity. Replacing or re-registering a target never reuses it.
Trait Implementations§
Source§impl Clone for WgpuSnapshotTarget
impl Clone for WgpuSnapshotTarget
impl Copy for WgpuSnapshotTarget
Source§impl Debug for WgpuSnapshotTarget
impl Debug for WgpuSnapshotTarget
impl Eq for WgpuSnapshotTarget
Source§impl PartialEq for WgpuSnapshotTarget
impl PartialEq for WgpuSnapshotTarget
impl StructuralPartialEq for WgpuSnapshotTarget
Auto Trait Implementations§
impl Forget for WgpuSnapshotTarget
impl Freeze for WgpuSnapshotTarget
impl Move for WgpuSnapshotTarget
impl RefUnwindSafe for WgpuSnapshotTarget
impl Send for WgpuSnapshotTarget
impl Sync for WgpuSnapshotTarget
impl Unpin for WgpuSnapshotTarget
impl UnsafeUnpin for WgpuSnapshotTarget
impl UnwindSafe for WgpuSnapshotTarget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.