Fix shader syntax (#5613)

This commit is contained in:
Timo Kösters 2022-08-08 19:59:59 +00:00
parent 51fce7e13f
commit 2ac744331b
2 changed files with 6 additions and 6 deletions

View file

@ -98,7 +98,7 @@ use std::marker::PhantomData;
/// ```wgsl /// ```wgsl
/// struct CustomMaterial { /// struct CustomMaterial {
/// color: vec4<f32>, /// color: vec4<f32>,
/// }; /// }
/// ///
/// @group(1) @binding(0) /// @group(1) @binding(0)
/// var<uniform> material: CustomMaterial; /// var<uniform> material: CustomMaterial;

View file

@ -100,14 +100,14 @@ use crate::{
/// ///
/// ```wgsl /// ```wgsl
/// struct CustomMaterial { /// struct CustomMaterial {
/// color: vec4<f32>; /// color: vec4<f32>,
/// }; /// }
/// ///
/// [[group(1), binding(0)]] /// @group(1) @binding(0)
/// var<uniform> material: CustomMaterial; /// var<uniform> material: CustomMaterial;
/// [[group(1), binding(1)]] /// @group(1) @binding(1)
/// var color_texture: texture_2d<f32>; /// var color_texture: texture_2d<f32>;
/// [[group(1), binding(2)]] /// @group(1) @binding(2)
/// var color_sampler: sampler; /// var color_sampler: sampler;
/// ``` /// ```
pub trait Material2d: AsBindGroup + Send + Sync + Clone + TypeUuid + Sized + 'static { pub trait Material2d: AsBindGroup + Send + Sync + Clone + TypeUuid + Sized + 'static {