mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Forward MakeResident to EnqueueMakeResident.
This commit is contained in:
parent
bd35c91227
commit
2935ac5c7e
Notes:
Alexandre Julliard
2023-11-28 00:12:08 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/488
@ -3736,10 +3736,19 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_OpenSharedHandleByName(ID3D12Devic
|
||||
static HRESULT STDMETHODCALLTYPE d3d12_device_MakeResident(ID3D12Device5 *iface,
|
||||
UINT object_count, ID3D12Pageable * const *objects)
|
||||
{
|
||||
FIXME_ONCE("iface %p, object_count %u, objects %p stub!\n",
|
||||
iface, object_count, objects);
|
||||
ID3D12Fence *fence;
|
||||
HRESULT hr;
|
||||
|
||||
return S_OK;
|
||||
TRACE("iface %p, object_count %u, objects %p.\n", iface, object_count, objects);
|
||||
|
||||
if (FAILED(hr = ID3D12Device5_CreateFence(iface, 0, 0, &IID_ID3D12Fence, (void **)&fence)))
|
||||
return hr;
|
||||
|
||||
hr = ID3D12Device5_EnqueueMakeResident(iface, 0, object_count, objects, fence, 1);
|
||||
if (SUCCEEDED(hr))
|
||||
ID3D12Fence_SetEventOnCompletion(fence, 1, NULL);
|
||||
ID3D12Fence_Release(fence);
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE d3d12_device_Evict(ID3D12Device5 *iface,
|
||||
|
Loading…
Reference in New Issue
Block a user