From 00daf9eb0a2420759259ad3504343bc4a9394c31 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Mon, 20 Jan 2025 22:46:52 +0100 Subject: [PATCH] vkd3d-shader/fx: Handle HLSL_IR_INDEX assignments. --- libs/vkd3d-shader/fx.c | 1 + tests/hlsl/effect-compile.shader_test | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index 9cb76f651..67706bba9 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -3130,6 +3130,7 @@ static void resolve_fx_state_block_values(struct hlsl_ir_var *var, break; } case HLSL_IR_COMPILE: + case HLSL_IR_INDEX: break; default: hlsl_fixme(ctx, &ctx->location, "Unhandled node type for object-typed field."); diff --git a/tests/hlsl/effect-compile.shader_test b/tests/hlsl/effect-compile.shader_test index b8c784479..775cf453f 100644 --- a/tests/hlsl/effect-compile.shader_test +++ b/tests/hlsl/effect-compile.shader_test @@ -320,7 +320,7 @@ technique10 t0 } } -[effect todo] +[effect] float4 vs( float4 pos : POSITION ) : SV_POSITION { return pos; } float4 vs2( float4 pos : POSITION ) : SV_POSITION { return pos + pos; } float4 ps( float4 pos : SV_POSITION ) : SV_Target { return float4( 1.0f, 1.0f, 0.0f, 1.0f ); }