[PATCH vkd3d 1/5] vkd3d: Change to void the return type for ID3D12GraphicsCommandList::ClearState().

Conor McCarthy cmccarthy at codeweavers.com
Fri Sep 3 09:58:55 CDT 2021


ClearState() does not return a value.

Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
 include/vkd3d_d3d12.idl | 2 +-
 libs/vkd3d/command.c    | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/include/vkd3d_d3d12.idl b/include/vkd3d_d3d12.idl
index 11e597db..2d9aa1b6 100644
--- a/include/vkd3d_d3d12.idl
+++ b/include/vkd3d_d3d12.idl
@@ -2052,7 +2052,7 @@ interface ID3D12GraphicsCommandList : ID3D12CommandList
 
     HRESULT Reset(ID3D12CommandAllocator *allocator, ID3D12PipelineState *initial_state);
 
-    HRESULT ClearState(ID3D12PipelineState *pipeline_state);
+    void ClearState(ID3D12PipelineState *pipeline_state);
 
     void DrawInstanced(UINT vertex_count_per_instance, UINT instance_count,
             UINT start_vertex_location, UINT start_instance_location);
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index 964f5cd4..46c0c3a5 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -2398,12 +2398,10 @@ static HRESULT STDMETHODCALLTYPE d3d12_command_list_Reset(ID3D12GraphicsCommandL
     return hr;
 }
 
-static HRESULT STDMETHODCALLTYPE d3d12_command_list_ClearState(ID3D12GraphicsCommandList2 *iface,
+static void STDMETHODCALLTYPE d3d12_command_list_ClearState(ID3D12GraphicsCommandList2 *iface,
         ID3D12PipelineState *pipeline_state)
 {
     FIXME("iface %p, pipline_state %p stub!\n", iface, pipeline_state);
-
-    return E_NOTIMPL;
 }
 
 static bool d3d12_command_list_has_depth_stencil_view(struct d3d12_command_list *list)
-- 
2.32.0




More information about the wine-devel mailing list