mirror of
				https://gitlab.winehq.org/wine/vkd3d.git
				synced 2025-09-12 18:50:22 -07:00 
			
		
		
		
	
		
			
	
	
		
			25 lines
		
	
	
		
			423 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			25 lines
		
	
	
		
			423 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|   | [require] | ||
|  | shader model >= 4.0 | ||
|  | 
 | ||
|  | [pixel shader] | ||
|  | float4 main(uniform float4 u) : sv_target | ||
|  | { | ||
|  |     return D3DCOLORtoUBYTE4(u); | ||
|  | } | ||
|  | 
 | ||
|  | [test] | ||
|  | uniform 0 float4 -0.5 6.5 7.5 3.4 | ||
|  | draw quad | ||
|  | probe all rgba (1912.0, 1657.0, -127.0, 867.0) 1 | ||
|  | 
 | ||
|  | [pixel shader] | ||
|  | float4 main(uniform float4 u) : sv_target | ||
|  | { | ||
|  |     return D3DCOLORtoUBYTE4(u.x); | ||
|  | } | ||
|  | 
 | ||
|  | [test] | ||
|  | uniform 0 float4 -0.5 6.5 7.5 3.4 | ||
|  | draw quad | ||
|  | probe all rgba (-127.0, -127.0, -127.0, -127.0) 1 |