mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d: Introduce API versions.
For backwards compatibility. Newer vkd3d versions may report more capabilities, but some of those may also require newer vkd3d APIs in order to use them. That's an issue for a vkd3d user like Wine, where reporting more capabilities may cause the application to try to use APIs that are not implemented in that version of Wine. Note that using ELF symbol versioning would have solved the issue for existing binaries compiled against older versions of vkd3d, but not for older source compiled against newer versions of vkd3d. Users of vkd3d-utils should define VKD3D_UTILS_API_VERSION to the vkd3d API version they wish to target. 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
11980c3944
commit
3777eb4e5c
@@ -51,6 +51,13 @@ enum vkd3d_structure_type
|
||||
VKD3D_FORCE_32_BIT_ENUM(VKD3D_STRUCTURE_TYPE),
|
||||
};
|
||||
|
||||
enum vkd3d_api_version
|
||||
{
|
||||
VKD3D_API_VERSION_1_0,
|
||||
VKD3D_API_VERSION_1_1,
|
||||
VKD3D_API_VERSION_1_2,
|
||||
};
|
||||
|
||||
typedef HRESULT (*PFN_vkd3d_signal_event)(HANDLE event);
|
||||
|
||||
typedef void * (*PFN_vkd3d_thread)(void *data);
|
||||
@@ -98,6 +105,8 @@ struct vkd3d_application_info
|
||||
|
||||
const char *engine_name; /* "vkd3d" if NULL */
|
||||
uint32_t engine_version; /* vkd3d version if engine_name is NULL */
|
||||
|
||||
enum vkd3d_api_version api_version;
|
||||
};
|
||||
|
||||
struct vkd3d_device_create_info
|
||||
|
Reference in New Issue
Block a user