From 8341c975a06b265153a5569800fd62411ee4a044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Tue, 27 Sep 2016 12:13:37 +0200 Subject: [PATCH] libs/vkd3d: Implement d3d12_command_list_Close(). --- libs/vkd3d/command.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index dd90e0ca..bae907ca 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -409,9 +409,15 @@ static D3D12_COMMAND_LIST_TYPE STDMETHODCALLTYPE d3d12_command_list_GetType(ID3D static HRESULT STDMETHODCALLTYPE d3d12_command_list_Close(ID3D12GraphicsCommandList *iface) { - FIXME("iface %p stub!\n", iface); + struct d3d12_command_list *list = impl_from_ID3D12GraphicsCommandList(iface); + const struct vkd3d_vk_device_procs *vk_procs; + VkResult vr; - return E_NOTIMPL; + TRACE("iface %p.\n", iface); + + vk_procs = &list->device->vk_procs; + vr = VK_CALL(vkEndCommandBuffer(list->vk_command_buffer)); + return hresult_from_vk_result(vr); } static HRESULT STDMETHODCALLTYPE d3d12_command_list_Reset(ID3D12GraphicsCommandList *iface,