On Fri, 8 Nov 2019 at 18:10, Conor McCarthy <cmccarthy(a)codeweavers.com> wrote:
@@ -48,6 +48,9 @@ enum vkd3d_structure_type VKD3D_STRUCTURE_TYPE_OPTIONAL_DEVICE_EXTENSIONS_INFO, VKD3D_STRUCTURE_TYPE_APPLICATION_INFO,
+ /* 1.3 */ + VKD3D_STRUCTURE_TYPE_OPTIONAL_DEVICE_CALLBACK_INFO, vkd3d-1.2 is unreleased, so this should be part of 1.2.
+typedef interface IWineDXGIAdapter IWineDXGIAdapter; + +struct vkd3d_optional_device_callback_info +{ + enum vkd3d_structure_type type; + const void *next; + + void (STDMETHODCALLTYPE *pfn_memory_usage_callback)(IWineDXGIAdapter *adapter, + unsigned int non_local, UINT64 total, UINT64 usage); +}; Vkd3d shouldn't have Wine specific interfaces. In this specific case, it's of course also entirely unnecessary for this to take a IWineDXGIAdapter.