{"record":{"id":"a1dd48a82dad93b3","repo":"gfx-rs/wgpu","slug":"mesh-shader-feature-must-be-enabled-to-call-multi-a1dd48","errorCode":null,"errorMessage":"MESH_SHADER feature must be enabled to call multi_draw_mesh_tasks_indirect_count","messagePattern":"MESH_SHADER feature must be enabled to call multi_draw_mesh_tasks_indirect_count","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"wgpu/src/backend/webgpu.rs","lineNumber":3945,"sourceCode":"        &mut self,\n        _indirect_buffer: &dispatch::DispatchBuffer,\n        _indirect_offset: crate::BufferAddress,\n        _count_buffer: &dispatch::DispatchBuffer,\n        _count_buffer_offset: crate::BufferAddress,\n        _max_count: u32,\n    ) {\n        panic!(\"MULTI_DRAW_INDIRECT_COUNT feature must be enabled to call multi_draw_indexed_indirect_count\")\n    }\n\n    fn multi_draw_mesh_tasks_indirect_count(\n        &mut self,\n        _indirect_buffer: &dispatch::DispatchBuffer,\n        _indirect_offset: crate::BufferAddress,\n        _count_buffer: &dispatch::DispatchBuffer,\n        _count_buffer_offset: crate::BufferAddress,\n        _max_count: u32,\n    ) {\n        panic!(\"MESH_SHADER feature must be enabled to call multi_draw_mesh_tasks_indirect_count\")\n    }\n\n    fn insert_debug_marker(&mut self, label: &str) {\n        self.inner.insert_debug_marker(label);\n    }\n\n    fn push_debug_group(&mut self, group_label: &str) {\n        self.inner.push_debug_group(group_label);\n    }\n\n    fn pop_debug_group(&mut self) {\n        self.inner.pop_debug_group();\n    }\n\n    fn write_timestamp(&mut self, _query_set: &dispatch::DispatchQuerySet, _query_index: u32) {\n        panic!(\"TIMESTAMP_QUERY_INSIDE_PASSES feature must be enabled to call write_timestamp in a render pass.\")\n    }\n","sourceCodeStart":3927,"sourceCodeEnd":3963,"githubUrl":"https://github.com/gfx-rs/wgpu/blob/3e11ff59bf3f9795d285ecc045014089640d7248/wgpu/src/backend/webgpu.rs#L3927-L3963","documentation":"Panic in the WebGPU (WASM) backend's multi_draw_mesh_tasks_indirect_count stub. The browser WebGPU API has no mesh-shader indirect-count entry point, so any call reaching this trait method aborts; the faulty input is the call itself on a backend that cannot support it.","triggerScenarios":"Thrown at wgpu/src/backend/webgpu.rs:3945 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Do not call multi_draw_mesh_tasks_indirect_count when targeting WASM/WebGPU","Gate mesh-shading indirect paths behind a native-only backend check or feature flag"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3e11ff59bf3f9795d285ecc045014089640d7248","analyzedAt":"2026-09-03T01:43:21.459Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-10T07:17:11.731Z"}