From 1569bb3fb8c745d895ad555da1de5e6a2a846218 Mon Sep 17 00:00:00 2001 From: Elizabeth Figura Date: Sun, 9 Nov 2025 12:59:21 -0600 Subject: [PATCH] vkd3d-shader/hlsl: Only prepend a $ for parameters with the uniform keyword. --- libs/vkd3d-shader/hlsl_codegen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/hlsl_codegen.c b/libs/vkd3d-shader/hlsl_codegen.c index 891eda2b1..8334ffdf7 100644 --- a/libs/vkd3d-shader/hlsl_codegen.c +++ b/libs/vkd3d-shader/hlsl_codegen.c @@ -10703,7 +10703,9 @@ static void write_sm1_uniforms(struct hlsl_ctx *ctx, struct vkd3d_bytecode_buffe ++uniform_count; - if (var->is_param && var->is_uniform) + /* Not var->is_uniform. The $ prefix is only added if the variable + * is actually declared with a 'uniform' modifier. */ + if (var->is_param && (var->storage_modifiers & HLSL_STORAGE_UNIFORM)) { char *new_name;