mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08:00
vkd3d-shader/hlsl: Only prepend a $ for parameters with the uniform keyword.
This commit is contained in:
committed by
Henri Verbeet
parent
6801f50422
commit
1569bb3fb8
Notes:
Henri Verbeet
2025-11-10 16:27:47 +01:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1819
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user