mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-26 03:30:30 +00:00 
			
		
		
		
	Also add abstract overloads. Bug: tint:1581 Fixed: tint:1768 Change-Id: Icda465e0cfe960b77823c2135f0cfe8f82ed394f Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/111441 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Antonio Maiorano <amaiorano@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
		
			
				
	
	
		
			8 lines
		
	
	
		
			172 B
		
	
	
	
		
			WebGPU Shading Language
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			172 B
		
	
	
	
		
			WebGPU Shading Language
		
	
	
	
	
	
| @compute @workgroup_size(1)
 | |
| fn main() {
 | |
|     let in = vec2(1.25, 3.75);
 | |
|     let res = frexp(in);
 | |
|     let fract : vec2<f32> = res.fract;
 | |
|     let exp : vec2<i32> = res.exp;
 | |
| }
 |