diff --git a/crates/bevy_pbr/src/material.rs b/crates/bevy_pbr/src/material.rs index 0dcbe50de7a737..bb5d07db453743 100644 --- a/crates/bevy_pbr/src/material.rs +++ b/crates/bevy_pbr/src/material.rs @@ -98,7 +98,7 @@ use std::marker::PhantomData; /// ```wgsl /// struct CustomMaterial { /// color: vec4, -/// }; +/// } /// /// @group(1) @binding(0) /// var material: CustomMaterial; diff --git a/crates/bevy_sprite/src/mesh2d/material.rs b/crates/bevy_sprite/src/mesh2d/material.rs index 772de65bb7c299..f1cd52329bb6fc 100644 --- a/crates/bevy_sprite/src/mesh2d/material.rs +++ b/crates/bevy_sprite/src/mesh2d/material.rs @@ -100,14 +100,14 @@ use crate::{ /// /// ```wgsl /// struct CustomMaterial { -/// color: vec4; -/// }; +/// color: vec4, +/// } /// -/// [[group(1), binding(0)]] +/// @group(1) @binding(0) /// var material: CustomMaterial; -/// [[group(1), binding(1)]] +/// @group(1) @binding(1) /// var color_texture: texture_2d; -/// [[group(1), binding(2)]] +/// @group(1) @binding(2) /// var color_sampler: sampler; /// ``` pub trait Material2d: AsBindGroup + Send + Sync + Clone + TypeUuid + Sized + 'static {