diff --git a/crates/bevy_pbr/src/material.rs b/crates/bevy_pbr/src/material.rs index 2dc0e0f3ed..5c0a749cb2 100644 --- a/crates/bevy_pbr/src/material.rs +++ b/crates/bevy_pbr/src/material.rs @@ -100,12 +100,8 @@ use std::marker::PhantomData; /// In WGSL shaders, the material's binding would look like this: /// /// ```wgsl -/// struct CustomMaterial { -/// color: vec4, -/// } -/// /// @group(1) @binding(0) -/// var material: CustomMaterial; +/// var color: vec4; /// @group(1) @binding(1) /// var color_texture: texture_2d; /// @group(1) @binding(2) diff --git a/crates/bevy_render/src/render_resource/bind_group.rs b/crates/bevy_render/src/render_resource/bind_group.rs index a8d4a06e17..9511817d46 100644 --- a/crates/bevy_render/src/render_resource/bind_group.rs +++ b/crates/bevy_render/src/render_resource/bind_group.rs @@ -93,12 +93,8 @@ impl Deref for BindGroup { /// In WGSL shaders, the binding would look like this: /// /// ```wgsl -/// struct CoolMaterial { -/// color: vec4, -/// }; -/// /// @group(1) @binding(0) -/// var material: CoolMaterial; +/// var color: vec4; /// @group(1) @binding(1) /// var color_texture: texture_2d; /// @group(1) @binding(2)