diff --git a/player/src/lib.rs b/player/src/lib.rs index ae5fcc0f1..2b0001a5c 100644 --- a/player/src/lib.rs +++ b/player/src/lib.rs @@ -164,7 +164,8 @@ impl GlobalPlay for wgc::hub::Global { A::CreateTexture { id, desc } => { let label = Label::new(&desc.label); self.device_maintain_ids::(device); - self.device_create_texture::(device, &desc.map_label(|_| label.as_ptr()), id); + self.device_create_texture::(device, &desc.map_label(|_| label.as_ptr()), id) + .unwrap(); } A::DestroyTexture(id) => { self.texture_destroy::(id); diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index 8d2b781a5..e984aef7c 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -55,7 +55,7 @@ fn own_label(label: &Label) -> String { } pub const MAX_COLOR_TARGETS: usize = 4; -pub const MAX_MIP_LEVELS: usize = 16; +pub const MAX_MIP_LEVELS: u32 = 16; pub const MAX_VERTEX_BUFFERS: usize = 16; pub const MAX_ANISOTROPY: u8 = 16; pub const SHADER_STAGE_COUNT: usize = 3; @@ -457,18 +457,18 @@ impl Device { &self, self_id: id::DeviceId, desc: &wgt::TextureDescriptor