Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Docs still use naga_oil #{MATERIAL_BIND_GROUP} syntax after WESL switch

Closed Beginner friendly
#26,069 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

Start with the WGSL snippets in the Material trait docs in crates/bevy_pbr/src/material.rs and the AsBindGroup docs in crates/bevy_render/src/render_resource/bind_group.rs, then check the example shaders in assets/shaders/ for the WESL form constants::MATERIAL_BIND_GROUP. Also fix the 'group 2' wording in bind_group.rs to match MATERIAL_BIND_GROUP_INDEX (3). Done means no naga_oil #{MATERIAL_BIND_GROUP} remains in the four listed locations and the examples still compile. Confirm with a maintainer whether the author's branch should be used as the PR.

Written by the indexing model from the issue text.

Description

A-Rendering C-Docs D-Shaders D-Straightforward S-Ready-For-Implementation X-Uncontroversial

Since 0.20 moved Bevy's shaders to WESL (#25088), the naga_oil #{MATERIAL_BIND_GROUP}
substitution no longer works, but a few doc comments and examples still show it. Copying the
snippet from the Material docs into a 0.20 shader fails to compile.

The WESL form is constants::MATERIAL_BIND_GROUP, which is what the example shaders in
assets/shaders/ already use.

Places that still have the old syntax (on main):

  • crates/bevy_pbr/src/material.rs: the WGSL snippet in the Material trait docs (docs.rs)
  • crates/bevy_render/src/render_resource/bind_group.rs: several snippets in the AsBindGroup docs (docs.rs)
  • examples/shader/extended_material_bindless.rs: doc comments
  • examples/shader_advanced/texture_binding_array.rs: comments in specialize

bind_group.rs also says material bind groups "are generally bound to group 2", but
MATERIAL_BIND_GROUP_INDEX is 3.

I have a branch with the replacements here if it's useful:
https://github.com/bevyengine/bevy/compare/main...ShaneBreazeale:bevy:docs-wesl-material-bind-group

I'm happy to open it as a PR if you like.

AI disclosure: I used an AI coding agent to find these occurrences and to draft both the branch
changes and this issue text. I've reviewed the changes myself.

Dominant language
Rust
Stars
49.2k
Forks
5k
Avg merge
3d 11h
Merged PRs (30d)
136

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bevyengine/bevy

All issues in bevyengine/bevy

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.