Fix shader syntax (#5613)
This commit is contained in:
		
							parent
							
								
									51fce7e13f
								
							
						
					
					
						commit
						2ac744331b
					
				@ -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 New Issue
	
	Block a user