pub struct TextureSourceInfo {
pub name_id: u32,
pub source: String,
pub image_index: u32,
}Expand description
A texture’s identity + on-disk source, in TextureHandle order. Now that
Texture is a resource (no source/asset_id on a component the renderer
drains), this is how a dev build hands the cn debug tools what they need: the
hot-reload watcher maps source -> handle, and the runtime spawn-by-name path
maps name_id -> handle. source is empty for a procedural texture (nothing
to watch). name_id is the interned asset name (same interner the runtime
shares in-process under cn debug), so nothing is interned at runtime.
Fields§
§name_id: u32The interned asset name.
source: StringAuthored source path; empty for a procedural texture.
image_index: u32Index of the image within the source document.
Trait Implementations§
Source§impl Clone for TextureSourceInfo
impl Clone for TextureSourceInfo
Source§fn clone(&self) -> TextureSourceInfo
fn clone(&self) -> TextureSourceInfo
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 moreSource§impl Debug for TextureSourceInfo
impl Debug for TextureSourceInfo
Source§impl Default for TextureSourceInfo
impl Default for TextureSourceInfo
Source§fn default() -> TextureSourceInfo
fn default() -> TextureSourceInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextureSourceInfo
impl PartialEq for TextureSourceInfo
impl StructuralPartialEq for TextureSourceInfo
Auto Trait Implementations§
impl Freeze for TextureSourceInfo
impl RefUnwindSafe for TextureSourceInfo
impl Send for TextureSourceInfo
impl Sync for TextureSourceInfo
impl Unpin for TextureSourceInfo
impl UnsafeUnpin for TextureSourceInfo
impl UnwindSafe for TextureSourceInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more