mirror of
				https://gitlab.winehq.org/wine/vkd3d.git
				synced 2025-09-12 18:50:22 -07:00 
			
		
		
		
	vkd3d-shader/hlsl: Write SM4 logic and instructions.
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
						
							02d92c9af6
						
					
				
				
					commit
					15e4b9bafb
				
			| @@ -1846,6 +1846,11 @@ static void write_sm4_expr(struct hlsl_ctx *ctx, | ||||
|             break; | ||||
|         } | ||||
|  | ||||
|         case HLSL_OP2_LOGIC_AND: | ||||
|             assert(dst_type->base_type == HLSL_TYPE_BOOL); | ||||
|             write_sm4_binary_op(buffer, VKD3D_SM4_OP_AND, &expr->node, arg1, arg2); | ||||
|             break; | ||||
|  | ||||
|         case HLSL_OP2_LSHIFT: | ||||
|             assert(type_is_integer(dst_type)); | ||||
|             assert(dst_type->base_type != HLSL_TYPE_BOOL); | ||||
|   | ||||
| @@ -35,7 +35,7 @@ float4 main() : SV_TARGET | ||||
| } | ||||
|  | ||||
| [test] | ||||
| todo draw quad | ||||
| draw quad | ||||
| probe all rgba (0.0, 0.0, 0.0, 1.0) | ||||
|  | ||||
| [pixel shader] | ||||
| @@ -88,7 +88,7 @@ float4 main() : SV_TARGET | ||||
| } | ||||
|  | ||||
| [test] | ||||
| todo draw quad | ||||
| draw quad | ||||
| probe all rgba (0.0, 0.0, 0.0, 1.0) | ||||
|  | ||||
| [pixel shader] | ||||
| @@ -141,7 +141,7 @@ float4 main() : SV_TARGET | ||||
| } | ||||
|  | ||||
| [test] | ||||
| todo draw quad | ||||
| draw quad | ||||
| probe all rgba (0.0, 0.0, 0.0, 1.0) | ||||
|  | ||||
| [pixel shader] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user