mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-26 03:30:30 +00:00 
			
		
		
		
	CTS tests: https://github.com/gpuweb/cts/pull/1005 Bug: tint:1371 Change-Id: I228c7b2a27c6fbac0653c416fac603a6fb4bff85 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/81640 Reviewed-by: David Neto <dneto@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
		
			
				
	
	
		
			26 lines
		
	
	
		
			448 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			448 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
| #version 310 es
 | |
| 
 | |
| uint tint_extract_bits(uint v, uint offset, uint count) {
 | |
|   uint s = min(offset, 32u);
 | |
|   uint e = min(32u, (s + count));
 | |
|   return bitfieldExtract(v, int(s), int((e - s)));
 | |
| }
 | |
| 
 | |
| void f_1() {
 | |
|   uint v = 0u;
 | |
|   uint offset_1 = 0u;
 | |
|   uint count = 0u;
 | |
|   uint x_11 = tint_extract_bits(v, offset_1, count);
 | |
|   return;
 | |
| }
 | |
| 
 | |
| void f() {
 | |
|   f_1();
 | |
| }
 | |
| 
 | |
| layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
 | |
| void main() {
 | |
|   f();
 | |
|   return;
 | |
| }
 |