{"record":{"id":"36415052d6cdd471","repo":"gfx-rs/wgpu","slug":"feature-ray-tracing-not-enabled-364150","errorCode":null,"errorMessage":"Feature `RAY_TRACING` not enabled","messagePattern":"Feature `RAY_TRACING` not enabled","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"wgpu-hal/src/vulkan/device.rs","lineNumber":2687,"sourceCode":"    }\n\n    unsafe fn pipeline_cache_get_data(&self, cache: &super::PipelineCache) -> Option<Vec<u8>> {\n        let data = unsafe { self.raw_device().get_pipeline_cache_data(cache.raw) };\n        data.ok()\n    }\n\n    unsafe fn get_acceleration_structure_build_sizes<'a>(\n        &self,\n        desc: &crate::GetAccelerationStructureBuildSizesDescriptor<'a, super::Buffer>,\n    ) -> crate::AccelerationStructureBuildSizes {\n        const CAPACITY: usize = 8;\n\n        let ray_tracing_functions = self\n            .shared\n            .extension_fns\n            .ray_tracing\n            .as_ref()\n            .expect(\"Feature `RAY_TRACING` not enabled\");\n\n        let (geometries, primitive_counts) = match *desc.entries {\n            crate::AccelerationStructureEntries::Instances(ref instances) => {\n                let instance_data = vk::AccelerationStructureGeometryInstancesDataKHR::default();\n\n                let geometry = vk::AccelerationStructureGeometryKHR::default()\n                    .geometry_type(vk::GeometryTypeKHR::INSTANCES)\n                    .geometry(vk::AccelerationStructureGeometryDataKHR {\n                        instances: instance_data,\n                    });\n\n                (\n                    smallvec::smallvec![geometry],\n                    smallvec::smallvec![instances.count],\n                )\n            }\n            crate::AccelerationStructureEntries::Triangles(ref in_geometries) => {\n                let mut primitive_counts =","sourceCodeStart":2669,"sourceCodeEnd":2705,"githubUrl":"https://github.com/gfx-rs/wgpu/blob/3e11ff59bf3f9795d285ecc045014089640d7248/wgpu-hal/src/vulkan/device.rs#L2669-L2705","documentation":"Panic in the Vulkan device's get_acceleration_structure_build_sizes: shared.extension_fns.ray_tracing is None because the VK_KHR_(ray_tracing_)acceleration_structure functions were never loaded — Features::RAY_TRACING was not enabled on this device.","triggerScenarios":"Thrown at wgpu-hal/src/vulkan/device.rs:2687 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable Features::RAY_TRACING at device creation on hardware exposing the Vulkan acceleration-structure extensions","Gate acceleration-structure size queries behind an adapter 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"}