{"record":{"id":"7f4f4e82f302eb2b","repo":"bevyengine/bevy","slug":"texture-bindless-resource-type-must-have-a-binding","errorCode":null,"errorMessage":"Texture bindless resource type must have a binding number","messagePattern":"Texture bindless resource type must have a binding number","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/bevy_render/src/material_bind_groups.rs","lineNumber":1909,"sourceCode":"            (BindlessResourceType::TextureCube, &fallback_image.cube),\n            (\n                BindlessResourceType::TextureCubeArray,\n                &fallback_image.cube_array,\n            ),\n        ] {\n            // Skip texture types that this material doesn't use.\n            if !bindless_descriptor\n                .resources\n                .contains(&bindless_resource_type)\n            {\n                continue;\n            }\n\n            let mut texture_bindings = vec![];\n\n            let binding_number = bindless_resource_type\n                .binding_number()\n                .expect(\"Texture bindless resource type must have a binding number\");\n\n            match self.textures.get(&bindless_resource_type) {\n                Some(texture_bindless_binding_array) => {\n                    for maybe_bindless_binding in texture_bindless_binding_array.bindings.iter() {\n                        match *maybe_bindless_binding {\n                            Some(ref bindless_binding) => {\n                                texture_bindings.push(&*bindless_binding.resource);\n                            }\n                            None => texture_bindings.push(&*fallback_image.texture_view),\n                        }\n                    }\n                }\n\n                None => {\n                    // Fill with a single fallback image.\n                    texture_bindings.push(&*fallback_image.texture_view);\n                }\n            }","sourceCodeStart":1891,"sourceCodeEnd":1927,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_render/src/material_bind_groups.rs#L1891-L1927","documentation":"Internal invariant expect while building texture binding arrays for bindless materials: a texture BindlessResourceType has no binding number in the bindless descriptor, so the binding cannot be placed in the layout.","triggerScenarios":"Thrown at crates/bevy_render/src/material_bind_groups.rs:1909 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Report as a Bevy engine bug with a reproducing material/shader","Check that the material's bindless descriptor is generated consistently for textures"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"396ca727080776bd313bb892423b7d94e03b81b4","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}