mirror of
				https://gitlab.winehq.org/wine/vkd3d.git
				synced 2025-09-12 18:50:22 -07:00 
			
		
		
		
	tests/hlsl: Add a test for copy-propagation of uniform texture object writes.
This commit is contained in:
		
				
				Notes:
				
					Henri Verbeet
				
				2025-04-02 19:43:31 +02:00 
			
			Approved-by: Francisco Casas (@fcasas) Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1436
| @@ -223,3 +223,19 @@ float4 main() : sv_target | ||||
| uniform 0 float 11.0 | ||||
| todo(sm<4) draw quad | ||||
| probe (0, 0) rgba(1, 2, 3, 5) | ||||
|  | ||||
| [require] | ||||
| shader model < 5.1 | ||||
| options: backcompat | ||||
|  | ||||
| [pixel shader] | ||||
| sampler s; | ||||
| Texture2D t1, t2; | ||||
|  | ||||
| float4 main() : sv_target | ||||
| { | ||||
|     Texture2D t = t1; | ||||
|     t1 = t2; | ||||
|     t2 = t; | ||||
|     return t1.Sample(s, float2(0, 0)) + t2.Sample(s, float2(0, 0)); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user