mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/dxil: Emit an error if a constant code is unhandled.
This commit is contained in:
parent
47e56cdfed
commit
0f332eb939
Notes:
Alexandre Julliard
2024-03-27 23:07:08 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/707
@ -2960,6 +2960,8 @@ static enum vkd3d_result sm6_parser_constants_init(struct sm6_parser *sm6, const
|
||||
|
||||
default:
|
||||
FIXME("Unhandled constant code %u.\n", record->code);
|
||||
vkd3d_shader_parser_error(&sm6->p, VKD3D_SHADER_ERROR_DXIL_INVALID_OPERAND,
|
||||
"Constant code %u is unhandled.", record->code);
|
||||
dst->u.reg.type = VKD3DSPR_UNDEF;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user