vkd3d-shader: Expose the whole profile when dumping an HLSL shader.

The profile cannot be reliably devised by analyzing the HLSL code,
so it's useful to have it included in the file name.
This commit is contained in:
Giovanni Mascellani
2023-10-21 20:44:07 +02:00
committed by Alexandre Julliard
parent ecdc3f39d4
commit ab09c0b45b
Notes: Alexandre Julliard 2023-11-02 22:49:26 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/424
3 changed files with 13 additions and 8 deletions

View File

@@ -3633,7 +3633,7 @@ int hlsl_compile_shader(const struct vkd3d_shader_code *hlsl, const struct vkd3d
return VKD3D_ERROR_NOT_IMPLEMENTED;
}
vkd3d_shader_dump_shader(compile_info->source_type, profile->type, &compile_info->source);
vkd3d_shader_dump_shader(compile_info->source_type, profile->name, &compile_info->source);
if (compile_info->target_type == VKD3D_SHADER_TARGET_D3D_BYTECODE && profile->major_version > 3)
{