mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Check MS texture declaration without sample count only for used variables.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
committed by
Henri Verbeet
parent
80b2a2eb55
commit
d945d5e78c
Notes:
Henri Verbeet
2024-08-13 21:26:02 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/980
@@ -7304,12 +7304,6 @@ type_no_void:
|
||||
{
|
||||
validate_texture_format_type(ctx, $3, &@3);
|
||||
|
||||
if (hlsl_version_lt(ctx, 4, 1))
|
||||
{
|
||||
hlsl_error(ctx, &@1, VKD3D_SHADER_ERROR_HLSL_INVALID_TYPE,
|
||||
"Multisampled texture object declaration needs sample count for profile %s.", ctx->profile->name);
|
||||
}
|
||||
|
||||
$$ = hlsl_new_texture_type(ctx, $1, $3, 0);
|
||||
}
|
||||
| texture_ms_type '<' type ',' shift_expr '>'
|
||||
|
||||
Reference in New Issue
Block a user