mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Use separate flag fields to track whether a variable is a uniform or varying.
Mostly in order to make it clearer that these don't directly correspond to the modifiers with which the variable was declared. 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
7d8491516a
commit
c16a07caff
@@ -403,9 +403,9 @@ static void compute_liveness(struct hlsl_ctx *ctx, struct hlsl_ir_function_decl
|
||||
|
||||
LIST_FOR_EACH_ENTRY(var, entry_func->parameters, struct hlsl_ir_var, param_entry)
|
||||
{
|
||||
if (var->modifiers & HLSL_STORAGE_IN)
|
||||
if (var->is_input_varying)
|
||||
var->first_write = 1;
|
||||
if (var->modifiers & HLSL_STORAGE_OUT)
|
||||
if (var->is_output_varying)
|
||||
var->last_read = UINT_MAX;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user