File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ use std::marker::PhantomData;
98
98
/// ```wgsl
99
99
/// struct CustomMaterial {
100
100
/// color: vec4<f32>,
101
- /// };
101
+ /// }
102
102
///
103
103
/// @group(1) @binding(0)
104
104
/// var<uniform> material: CustomMaterial;
Original file line number Diff line number Diff line change @@ -100,14 +100,14 @@ use crate::{
100
100
///
101
101
/// ```wgsl
102
102
/// struct CustomMaterial {
103
- /// color: vec4<f32>;
104
- /// };
103
+ /// color: vec4<f32>,
104
+ /// }
105
105
///
106
- /// [[ group(1), binding(0)]]
106
+ /// @ group(1) @ binding(0)
107
107
/// var<uniform> material: CustomMaterial;
108
- /// [[ group(1), binding(1)]]
108
+ /// @ group(1) @ binding(1)
109
109
/// var color_texture: texture_2d<f32>;
110
- /// [[ group(1), binding(2)]]
110
+ /// @ group(1) @ binding(2)
111
111
/// var color_sampler: sampler;
112
112
/// ```
113
113
pub trait Material2d : AsBindGroup + Send + Sync + Clone + TypeUuid + Sized + ' static {
You can’t perform that action at this time.
0 commit comments