summaryrefslogtreecommitdiffstats
path: root/wgpu/src/image/atlas/entry.rs
diff options
context:
space:
mode:
Diffstat (limited to 'wgpu/src/image/atlas/entry.rs')
-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 4b06bd95..7e4c92a2 100644
--- a/wgpu/src/image/atlas/entry.rs
+++ b/wgpu/src/image/atlas/entry.rs
@@ -1,5 +1,4 @@
use crate::core::Size;
-use crate::graphics::image;
use crate::image::atlas;
#[derive(Debug)]
@@ -11,8 +10,9 @@ pub enum Entry {
},
}
-impl image::storage::Entry for Entry {
- fn size(&self) -> Size<u32> {
+impl Entry {
+ #[cfg(feature = "image")]
+ pub fn size(&self) -> Size<u32> {
match self {
Entry::Contiguous(allocation) => allocation.size(),
Entry::Fragmented { size, .. } => *size,