# Objective Fixes #3352 Fixes #3208 ## Solution - Update wgpu to 0.12 - Update naga to 0.8 - Resolve compilation errors - Remove [[block]] from WGSL shaders (because it is depracated and now wgpu cant parse it) - Replace `elseif` with `else if` in pbr.wgsl
		
			
				
	
	
		
			11 lines
		
	
	
		
			208 B
		
	
	
	
		
			WebGPU Shading Language
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			208 B
		
	
	
	
		
			WebGPU Shading Language
		
	
	
	
	
	
struct CustomMaterial {
 | 
						|
    color: vec4<f32>;
 | 
						|
};
 | 
						|
[[group(1), binding(0)]]
 | 
						|
var<uniform> material: CustomMaterial;
 | 
						|
 | 
						|
[[stage(fragment)]]
 | 
						|
fn fragment() -> [[location(0)]] vec4<f32> {
 | 
						|
    return material.color;
 | 
						|
}
 |