diff --git a/src/gui/texture.rs b/src/gui/texture.rs index 5d54279..a1eaaef 100644 --- a/src/gui/texture.rs +++ b/src/gui/texture.rs @@ -558,6 +558,10 @@ impl Texture { data: Vec, comment: Option, ) -> anyhow::Result { + if desc.format.is_compressed() && desc.depth > 1 { + anyhow::bail!("Compressed 3D textures are not supported by wgpu"); + } + let mut texture_data = data; // Pre-multiply alpha where possible if matches!(