Struct draw2d::graphics::texture_atlas::AtlasVersion [−][src]
pub struct AtlasVersion { /* fields omitted */ }
Expand description
At atlas’s version changes any time that the loaded textures are changed in some way.
Typically this is used to detect when the atlas needs to update as shader’s descriptor sets.
Implementations
A binding revision which will always be considered ‘out_of_date’ relative to the atlas.
Compare a version with this one, returns true when the versions do not match.
Always returns true if the version being compared against was created
with AtlasVersion::new_out_of_date
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AtlasVersion
impl Send for AtlasVersion
impl Sync for AtlasVersion
impl Unpin for AtlasVersion
impl UnwindSafe for AtlasVersion
Blanket Implementations
Mutably borrows from an owned value. Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.