pub struct ExternalTextureId(/* private fields */);Expand description
Opaque handle for an application-owned WGPU texture view registered with a renderer.
The handle can be passed to Dear ImGui through Self::texture_id, but cannot be forged from
an arbitrary TextureId. Registration owns a clone of the WGPU view handle; the application
remains responsible for the texture contents and must not explicitly destroy the underlying
GPU resource while it is registered.
Implementations§
Source§impl ExternalTextureId
impl ExternalTextureId
Sourcepub const fn texture_id(self) -> TextureId
pub const fn texture_id(self) -> TextureId
Returns the Dear ImGui texture identifier used by image widgets and draw-list commands.
Trait Implementations§
Source§impl Clone for ExternalTextureId
impl Clone for ExternalTextureId
Source§fn clone(&self) -> ExternalTextureId
fn clone(&self) -> ExternalTextureId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExternalTextureId
Source§impl Debug for ExternalTextureId
impl Debug for ExternalTextureId
impl Eq for ExternalTextureId
Source§impl From<ExternalTextureId> for TextureId
impl From<ExternalTextureId> for TextureId
Source§fn from(texture: ExternalTextureId) -> Self
fn from(texture: ExternalTextureId) -> Self
Converts to this type from the input type.
Source§impl Hash for ExternalTextureId
impl Hash for ExternalTextureId
Source§impl PartialEq for ExternalTextureId
impl PartialEq for ExternalTextureId
impl StructuralPartialEq for ExternalTextureId
Auto Trait Implementations§
impl Freeze for ExternalTextureId
impl RefUnwindSafe for ExternalTextureId
impl Send for ExternalTextureId
impl Sync for ExternalTextureId
impl Unpin for ExternalTextureId
impl UnsafeUnpin for ExternalTextureId
impl UnwindSafe for ExternalTextureId
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.