mirror of
				https://gitlab.winehq.org/wine/vkd3d.git
				synced 2025-09-12 18:50:22 -07:00 
			
		
		
		
	Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
		
			
				
	
	
		
			20 lines
		
	
	
		
			405 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			405 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| [vertex shader]
 | |
| void main(out float tex : texcoord, inout float4 pos : sv_position)
 | |
| {
 | |
|     tex = pos.x;
 | |
| }
 | |
| 
 | |
| [pixel shader]
 | |
| float4 main(float tex : texcoord) : SV_TARGET
 | |
| {
 | |
|     if (tex > 0.0)
 | |
|         return float4(0.1, 0.2, 0.3, 0.4);
 | |
|     else
 | |
|         return float4(0.9, 0.8, 0.7, 0.6);
 | |
| }
 | |
| 
 | |
| [test]
 | |
| draw quad
 | |
| probe (  0, 0, 319, 480) rgba (0.9, 0.8, 0.7, 0.6)
 | |
| probe (321, 0, 640, 480) rgba (0.1, 0.2, 0.3, 0.4)
 |