{"record":{"id":"98193675f7600ef0","repo":"gfx-rs/wgpu","slug":"feature-mesh-shading-not-enabled-981936","errorCode":null,"errorMessage":"Feature `MESH_SHADING` not enabled","messagePattern":"Feature `MESH_SHADING` not enabled","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"wgpu-hal/src/vulkan/command.rs","lineNumber":1165,"sourceCode":"                instance_count,\n                first_index,\n                base_vertex,\n                first_instance,\n            )\n        };\n    }\n    unsafe fn draw_mesh_tasks(\n        &mut self,\n        group_count_x: u32,\n        group_count_y: u32,\n        group_count_z: u32,\n    ) {\n        if let Some(ref t) = self.device.extension_fns.mesh_shading {\n            unsafe {\n                t.cmd_draw_mesh_tasks(self.active, group_count_x, group_count_y, group_count_z);\n            };\n        } else {\n            panic!(\"Feature `MESH_SHADING` not enabled\");\n        }\n    }\n    unsafe fn draw_indirect(\n        &mut self,\n        buffer: &super::Buffer,\n        offset: wgt::BufferAddress,\n        draw_count: u32,\n    ) {\n        if draw_count >= 1\n            && self.device.private_caps.multi_draw_indirect\n            && draw_count <= self.device.private_caps.max_draw_indirect_count\n        {\n            unsafe {\n                self.device.raw.cmd_draw_indirect(\n                    self.active,\n                    buffer.raw,\n                    offset,\n                    draw_count,","sourceCodeStart":1147,"sourceCodeEnd":1183,"githubUrl":"https://github.com/gfx-rs/wgpu/blob/3e11ff59bf3f9795d285ecc045014089640d7248/wgpu-hal/src/vulkan/command.rs#L1147-L1183","documentation":"Panic from the Vulkan command encoder when draw_mesh_tasks is called but the VK_EXT_mesh_shader extension functions were not loaded at device creation. The guard checks device.extension_fns.mesh_shading; it is None because Features::MESH_SHADING was not requested/enabled when the device was created.","triggerScenarios":"Thrown at wgpu-hal/src/vulkan/command.rs:1165 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the device with Features::MESH_SHADING enabled (requires a Vulkan device exposing VK_EXT_mesh_shader)","Only call draw_mesh_tasks from code paths gated behind a mesh-shading feature check"],"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"}