mirror of
				https://gitlab.winehq.org/wine/vkd3d.git
				synced 2025-09-12 18:50:22 -07:00 
			
		
		
		
	vkd3d-shader/hlsl: Test the INT_MIN / -1 constant folding special case.
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>
This commit is contained in:
		
				
					committed by
					
						 Alexandre Julliard
						Alexandre Julliard
					
				
			
			
				
	
			
			
			
						parent
						
							4d181bc622
						
					
				
				
					commit
					6b6ff48ece
				
			| @@ -41,3 +41,19 @@ float4 main() : SV_TARGET | ||||
|  | ||||
|     return x % y; | ||||
| } | ||||
|  | ||||
| [require] | ||||
| shader model >= 4.0 | ||||
|  | ||||
| [pixel shader] | ||||
| float4 main() : SV_TARGET | ||||
| { | ||||
|     int x = -2147483648; | ||||
|     int y = -1; | ||||
|  | ||||
|     return x / y; | ||||
| } | ||||
|  | ||||
| [test] | ||||
| draw quad | ||||
| probe all rgba (-2147483648.0, -2147483648.0, -2147483648.0, -2147483648.0) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user