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: Ic843964ec24d8a2f00f801823f8f8bbf1c6fab5c Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/85284 Reviewed-by: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
		
			
				
	
	
		
			11 lines
		
	
	
		
			188 B
		
	
	
	
		
			HLSL
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			188 B
		
	
	
	
		
			HLSL
		
	
	
	
	
	
| [numthreads(1, 1, 1)]
 | |
| void unused_entry_point() {
 | |
|   return;
 | |
| }
 | |
| 
 | |
| RWByteAddressBuffer v : register(u0, space0);
 | |
| 
 | |
| void foo() {
 | |
|   v.Store4(0u, asuint((asint(v.Load4(0u)) % int4((2).xxxx))));
 | |
| }
 |