summaryrefslogtreecommitdiffstats
path: root/wgpu/src/image/atlas
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src/image/atlas')
-rw-r--r--wgpu/src/image/atlas/entry.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/wgpu/src/image/atlas/entry.rs b/wgpu/src/image/atlas/entry.rs
index 9b3f16df..0c2f67fc 100644
--- a/wgpu/src/image/atlas/entry.rs
+++ b/wgpu/src/image/atlas/entry.rs
@@ -1,4 +1,5 @@
use crate::image::atlas;
+use iced_graphics::image::TextureStoreEntry;
#[derive(Debug)]
pub enum Entry {
@@ -9,9 +10,8 @@ pub enum Entry {
},
}
-impl Entry {
- #[cfg(feature = "image_rs")]
- pub fn size(&self) -> (u32, u32) {
+impl TextureStoreEntry for Entry {
+ fn size(&self) -> (u32, u32) {
match self {
Entry::Contiguous(allocation) => allocation.size(),
Entry::Fragmented { size, .. } => *size,