mirror of
				https://github.com/encounter/dawn-cmake.git
				synced 2025-10-27 20:20:28 +00:00 
			
		
		
		
	Change tint's `--fxc` flag to take the path of the FXC compiler DLL. Have tint attempt to validate with both FXC and DXC if `--validate` is passed. Fix the 'dirsWithNoPassExpectations' logic which looks like it got broken with the tint -> dawn merge. It also incorrectly applied filepath.FromSlash() on windows. Change-Id: I0f46aa5c21bc48a2abc48402c41f846aff4a8633 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96800 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Commit-Queue: Ben Clayton <bclayton@chromium.org>
		
			
				
	
	
		
			30 lines
		
	
	
		
			1000 B
		
	
	
	
		
			HLSL
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			1000 B
		
	
	
	
		
			HLSL
		
	
	
	
	
	
| struct In {
 | |
|   float none;
 | |
|   float flat;
 | |
|   float perspective_center;
 | |
|   float perspective_centroid;
 | |
|   float perspective_sample;
 | |
|   float linear_center;
 | |
|   float linear_centroid;
 | |
|   float linear_sample;
 | |
| };
 | |
| struct tint_symbol_2 {
 | |
|   float none : TEXCOORD0;
 | |
|   nointerpolation float flat : TEXCOORD1;
 | |
|   linear float perspective_center : TEXCOORD2;
 | |
|   linear centroid float perspective_centroid : TEXCOORD3;
 | |
|   linear sample float perspective_sample : TEXCOORD4;
 | |
|   noperspective float linear_center : TEXCOORD5;
 | |
|   noperspective centroid float linear_centroid : TEXCOORD6;
 | |
|   noperspective sample float linear_sample : TEXCOORD7;
 | |
| };
 | |
| 
 | |
| void main_inner(In tint_symbol) {
 | |
| }
 | |
| 
 | |
| void main(tint_symbol_2 tint_symbol_1) {
 | |
|   const In tint_symbol_3 = {tint_symbol_1.none, tint_symbol_1.flat, tint_symbol_1.perspective_center, tint_symbol_1.perspective_centroid, tint_symbol_1.perspective_sample, tint_symbol_1.linear_center, tint_symbol_1.linear_centroid, tint_symbol_1.linear_sample};
 | |
|   main_inner(tint_symbol_3);
 | |
|   return;
 | |
| }
 |