mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-26 03:30:30 +00:00 
			
		
		
		
	Use the ExpandCompoundAssignment transform to convert compound assignments to regular assignments. Bug: tint:1325 Change-Id: I960bf6cd0ec3490cd58685a7c13b6a7c86395080 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/85283 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
		
			
				
	
	
		
			12 lines
		
	
	
		
			177 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			177 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #include <metal_stdlib>
 | |
| 
 | |
| using namespace metal;
 | |
| struct S {
 | |
|   /* 0x0000 */ int a;
 | |
| };
 | |
| 
 | |
| void foo(device S* const tint_symbol) {
 | |
|   (*(tint_symbol)).a = ((*(tint_symbol)).a & 2);
 | |
| }
 | |
| 
 |