mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-compiler: vkd3d_shader_compile_dxbc() returns an int.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
57973b4252
commit
cb5c001062
@@ -150,7 +150,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
struct vkd3d_shader_code dxbc, spirv;
|
struct vkd3d_shader_code dxbc, spirv;
|
||||||
struct options options;
|
struct options options;
|
||||||
HRESULT hr;
|
int ret;
|
||||||
|
|
||||||
if (!parse_command_line(argc, argv, &options))
|
if (!parse_command_line(argc, argv, &options))
|
||||||
{
|
{
|
||||||
@@ -164,11 +164,11 @@ int main(int argc, char **argv)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr = vkd3d_shader_compile_dxbc(&dxbc, &spirv, options.compiler_options, NULL, NULL);
|
ret = vkd3d_shader_compile_dxbc(&dxbc, &spirv, options.compiler_options, NULL, NULL);
|
||||||
vkd3d_shader_free_shader_code(&dxbc);
|
vkd3d_shader_free_shader_code(&dxbc);
|
||||||
if (FAILED(hr))
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Failed to compile DXBC shader, hr %#x.\n", hr);
|
fprintf(stderr, "Failed to compile DXBC shader, ret %d.\n", ret);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user