mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader: Add a compiler message for unsupported DXBC versions.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9fcf00e2bf
commit
29e9cf032c
@ -1992,6 +1992,8 @@ static int parse_dxbc(const char *data, size_t data_size, struct vkd3d_shader_me
|
|||||||
if (version != 0x00000001)
|
if (version != 0x00000001)
|
||||||
{
|
{
|
||||||
WARN("Got unexpected DXBC version %#x.\n", version);
|
WARN("Got unexpected DXBC version %#x.\n", version);
|
||||||
|
vkd3d_shader_error(message_context, VKD3D_SHADER_ERROR_DXBC_INVALID_VERSION,
|
||||||
|
"DXBC version %#x is not supported.", version);
|
||||||
return VKD3D_ERROR_INVALID_ARGUMENT;
|
return VKD3D_ERROR_INVALID_ARGUMENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ enum vkd3d_shader_error
|
|||||||
VKD3D_SHADER_ERROR_DXBC_INVALID_SIZE = 1,
|
VKD3D_SHADER_ERROR_DXBC_INVALID_SIZE = 1,
|
||||||
VKD3D_SHADER_ERROR_DXBC_INVALID_MAGIC = 2,
|
VKD3D_SHADER_ERROR_DXBC_INVALID_MAGIC = 2,
|
||||||
VKD3D_SHADER_ERROR_DXBC_INVALID_CHECKSUM = 3,
|
VKD3D_SHADER_ERROR_DXBC_INVALID_CHECKSUM = 3,
|
||||||
|
VKD3D_SHADER_ERROR_DXBC_INVALID_VERSION = 4,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum VKD3D_SHADER_INSTRUCTION_HANDLER
|
enum VKD3D_SHADER_INSTRUCTION_HANDLER
|
||||||
|
Loading…
x
Reference in New Issue
Block a user