From 4536696a58be67bdfaad90222950c7238f063866 Mon Sep 17 00:00:00 2001 From: IceSentry Date: Sun, 20 Nov 2022 13:12:25 -0500 Subject: [PATCH 1/2] remove unnecessary struct in wgsl --- crates/bevy_pbr/src/material.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/bevy_pbr/src/material.rs b/crates/bevy_pbr/src/material.rs index 2dc0e0f3ed59e..5c0a749cb2ec9 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) From 76cf238f299ed0e56744a7cd06327b57c8c793fb Mon Sep 17 00:00:00 2001 From: IceSentry Date: Sun, 20 Nov 2022 13:13:58 -0500 Subject: [PATCH 2/2] remove in asbindgroup docs too --- crates/bevy_render/src/render_resource/bind_group.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/bevy_render/src/render_resource/bind_group.rs b/crates/bevy_render/src/render_resource/bind_group.rs index a8d4a06e17f13..9511817d469fb 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)