pub struct TextureId(/* private fields */);Expand description
Simple texture ID for backward compatibility
This is a simple wrapper around u64 that can be used to identify textures. For modern texture management, use TextureData instead.
Note: Changed from usize to u64 in Dear ImGui 1.91.4+ to support 64-bit handles like Vulkan and DX12 on 32-bit targets.
Implementations§
Trait Implementations§
Source§impl From<TextureId> for TextureRef
impl From<TextureId> for TextureRef
impl Copy for TextureId
impl Eq for TextureId
impl StructuralPartialEq for TextureId
Auto Trait Implementations§
impl Freeze for TextureId
impl RefUnwindSafe for TextureId
impl Send for TextureId
impl Sync for TextureId
impl Unpin for TextureId
impl UnwindSafe for TextureId
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