mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/tpf: Put the actual bind count in the RDEF table.
This commit is contained in:
committed by
Alexandre Julliard
parent
7eba063136
commit
81afe43569
Notes:
Alexandre Julliard
2023-08-15 22:06:06 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Zebediah Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/299
@@ -3275,6 +3275,7 @@ static bool track_object_components_usage(struct hlsl_ctx *ctx, struct hlsl_ir_n
|
||||
return false;
|
||||
|
||||
var->objects_usage[regset][index].used = true;
|
||||
var->bind_count[regset] = max(var->bind_count[regset], index + 1);
|
||||
if (load->sampler.var)
|
||||
{
|
||||
var = load->sampler.var;
|
||||
@@ -3282,6 +3283,7 @@ static bool track_object_components_usage(struct hlsl_ctx *ctx, struct hlsl_ir_n
|
||||
return false;
|
||||
|
||||
var->objects_usage[HLSL_REGSET_SAMPLERS][index].used = true;
|
||||
var->bind_count[HLSL_REGSET_SAMPLERS] = max(var->bind_count[HLSL_REGSET_SAMPLERS], index + 1);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user