Skip to content

Commit 2ac7443

Browse files
committed
Fix shader syntax (#5613)
1 parent 51fce7e commit 2ac7443

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/bevy_pbr/src/material.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ use std::marker::PhantomData;
9898
/// ```wgsl
9999
/// struct CustomMaterial {
100100
/// color: vec4<f32>,
101-
/// };
101+
/// }
102102
///
103103
/// @group(1) @binding(0)
104104
/// var<uniform> material: CustomMaterial;

crates/bevy_sprite/src/mesh2d/material.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ use crate::{
100100
///
101101
/// ```wgsl
102102
/// struct CustomMaterial {
103-
/// color: vec4<f32>;
104-
/// };
103+
/// color: vec4<f32>,
104+
/// }
105105
///
106-
/// [[group(1), binding(0)]]
106+
/// @group(1) @binding(0)
107107
/// var<uniform> material: CustomMaterial;
108-
/// [[group(1), binding(1)]]
108+
/// @group(1) @binding(1)
109109
/// var color_texture: texture_2d<f32>;
110-
/// [[group(1), binding(2)]]
110+
/// @group(1) @binding(2)
111111
/// var color_sampler: sampler;
112112
/// ```
113113
pub trait Material2d: AsBindGroup + Send + Sync + Clone + TypeUuid + Sized + 'static {

0 commit comments

Comments
 (0)