{"record":{"id":"61709069f6cef993","repo":"gfx-rs/wgpu","slug":"ray-tracing-is-unsupported-on-gl","errorCode":null,"errorMessage":"Ray tracing is unsupported on GL","messagePattern":"Ray tracing is unsupported on GL","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"wgpu-hal/src/gles/device.rs","lineNumber":1740,"sourceCode":"            program_cache.retain(|_, v| match *v {\n                Ok(ref p) => p.program != pipeline.inner.program,\n                Err(_) => false,\n            });\n            unsafe { gl.delete_program(pipeline.inner.program) };\n        }\n\n        self.counters.compute_pipelines.sub(1);\n    }\n\n    unsafe fn create_ray_tracing_pipeline(\n        &self,\n        _desc: &crate::RayTracingPipelineDescriptor<\n            super::PipelineLayout,\n            super::ShaderModule,\n            super::PipelineCache,\n        >,\n    ) -> Result<super::RayTracingPipeline, crate::PipelineError> {\n        unimplemented!(\"Ray tracing is unsupported on GL\")\n    }\n\n    unsafe fn destroy_ray_tracing_pipeline(&self, _pipeline: super::RayTracingPipeline) {\n        unimplemented!(\"Ray tracing is unsupported on GL\")\n    }\n\n    unsafe fn get_raytracing_pipeline_group_data(\n        &self,\n        _pipeline: &super::RayTracingPipeline,\n        _groups: core::ops::Range<u32>,\n    ) -> Result<Vec<u8>, crate::DeviceError> {\n        unimplemented!(\"Ray tracing is unsupported on GL\")\n    }\n\n    unsafe fn create_pipeline_cache(\n        &self,\n        _: &crate::PipelineCacheDescriptor<'_>,\n    ) -> Result<super::PipelineCache, crate::PipelineCacheError> {","sourceCodeStart":1722,"sourceCodeEnd":1758,"githubUrl":"https://github.com/gfx-rs/wgpu/blob/3e11ff59bf3f9795d285ecc045014089640d7248/wgpu-hal/src/gles/device.rs#L1722-L1758","documentation":"Panic from the GLES backend's create_ray_tracing_pipeline stub: OpenGL/GLES has no ray tracing pipeline equivalent, so the trait method is unimplemented and any call aborts. The faulty input is the ray-tracing pipeline descriptor on a GL device.","triggerScenarios":"Thrown at wgpu-hal/src/gles/device.rs:1740 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a backend that supports ray tracing (Vulkan) for ray tracing pipelines","Check adapter features before attempting to create ray tracing pipelines"],"exampleFix":null,"handlingStrategy":"fallback","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"}