mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader: Accept 'loop' attribute, on loops.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
committed by
Alexandre Julliard
parent
26784672d8
commit
ecdc3f39d4
Notes:
Alexandre Julliard
2023-11-01 22:40:21 +01: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/431
@@ -563,8 +563,11 @@ static struct hlsl_block *create_loop(struct hlsl_ctx *ctx, enum loop_type type,
|
||||
hlsl_warning(ctx, loc, VKD3D_SHADER_ERROR_HLSL_NOT_IMPLEMENTED, "Loop unrolling is not implemented.");
|
||||
}
|
||||
}
|
||||
else if (!strcmp(attr->name, "loop")
|
||||
|| !strcmp(attr->name, "fastopt")
|
||||
else if (!strcmp(attr->name, "loop"))
|
||||
{
|
||||
/* TODO: this attribute will be used to disable unrolling, once it's implememented. */
|
||||
}
|
||||
else if (!strcmp(attr->name, "fastopt")
|
||||
|| !strcmp(attr->name, "allow_uav_condition"))
|
||||
{
|
||||
hlsl_fixme(ctx, loc, "Unhandled attribute '%s'.", attr->name);
|
||||
|
Reference in New Issue
Block a user