Skip to content

Commit

Permalink
Fix shader syntax (bevyengine#5613)
Browse files Browse the repository at this point in the history
  • Loading branch information
timokoesters authored and ItsDoot committed Feb 1, 2023
1 parent 639f0c1 commit 9b34135
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ use std::marker::PhantomData;
/// ```wgsl
/// struct CustomMaterial {
/// color: vec4<f32>,
/// };
/// }
///
/// @group(1) @binding(0)
/// var<uniform> material: CustomMaterial;
Expand Down
10 changes: 5 additions & 5 deletions crates/bevy_sprite/src/mesh2d/material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ use crate::{
///
/// ```wgsl
/// struct CustomMaterial {
/// color: vec4<f32>;
/// };
/// color: vec4<f32>,
/// }
///
/// [[group(1), binding(0)]]
/// @group(1) @binding(0)
/// var<uniform> material: CustomMaterial;
/// [[group(1), binding(1)]]
/// @group(1) @binding(1)
/// var color_texture: texture_2d<f32>;
/// [[group(1), binding(2)]]
/// @group(1) @binding(2)
/// var color_sampler: sampler;
/// ```
pub trait Material2d: AsBindGroup + Send + Sync + Clone + TypeUuid + Sized + 'static {
Expand Down

0 comments on commit 9b34135

Please sign in to comment.