mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader: Mark all declared non-static global variables as HLSL_STORAGE_UNIFORM.
Fixes: 549be35c0a
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@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
parent
e237803011
commit
b20e182da1
@@ -1757,7 +1757,7 @@ int hlsl_emit_dxbc(struct hlsl_ctx *ctx, struct hlsl_ir_function_decl *entry_fun
|
||||
{
|
||||
if (var->data_type->type == HLSL_CLASS_OBJECT)
|
||||
list_add_tail(&ctx->extern_vars, &var->extern_entry);
|
||||
else if (!(var->modifiers & HLSL_STORAGE_STATIC))
|
||||
else if (var->modifiers & HLSL_STORAGE_UNIFORM)
|
||||
prepend_uniform_copy(ctx, entry_func->body, var);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user