mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 14:10:19 +00:00
Fix shader syntax (#5613)
This commit is contained in:
parent
51fce7e13f
commit
2ac744331b
2 changed files with 6 additions and 6 deletions
|
@ -98,7 +98,7 @@ use std::marker::PhantomData;
|
|||
/// ```wgsl
|
||||
/// struct CustomMaterial {
|
||||
/// color: vec4<f32>,
|
||||
/// };
|
||||
/// }
|
||||
///
|
||||
/// @group(1) @binding(0)
|
||||
/// var<uniform> material: CustomMaterial;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue