[PATCH vkd3d v2] vkd3d: Add an optional memory info callback extension.

Conor McCarthy cmccarthy at codeweavers.com
Mon Nov 18 02:08:30 CST 2019


November 16, 2019 4:56 AM, "Henri Verbeet" <hverbeet at gmail.com> wrote:
> On Thu, 14 Nov 2019 at 17:14, Conor McCarthy <cmccarthy at codeweavers.com> wrote:
> 
>> +typedef void (STDMETHODCALLTYPE *PFN_vkd3d_memory_usage_callback)(IUnknown *adapter,
>> + unsigned int non_local, UINT64 total, UINT64 usage);
>> +
>> +struct vkd3d_optional_device_callback_info
>> +{
>> + enum vkd3d_structure_type type;
>> + const void *next;
>> +
>> + PFN_vkd3d_memory_usage_callback pfn_memory_usage_callback;
>> +};
> 
> Perhaps it makes sense to expose the totals in some form, but I'd
> argue that for wined3d the deltas would be more natural.

In that case it may make more sense to remove the total from vkd3d for now, and warn about excessive allocation in wined3d instead. What do you think?



More information about the wine-devel mailing list