=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d12: Add stub for D3D12SerializeVersionedRootSignature().

Alexandre Julliard julliard at winehq.org
Thu Mar 7 16:27:59 CST 2019


Module: wine
Branch: master
Commit: 5307a251e5fa0c87023e78fac3e1a59d7d2b0047
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5307a251e5fa0c87023e78fac3e1a59d7d2b0047

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Thu Mar  7 11:21:22 2019 +0100

d3d12: Add stub for D3D12SerializeVersionedRootSignature().

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d12/d3d12.spec   |  2 ++
 dlls/d3d12/d3d12_main.c | 13 +++++++++++++
 include/d3d12.idl       |  4 ++++
 3 files changed, 19 insertions(+)

diff --git a/dlls/d3d12/d3d12.spec b/dlls/d3d12/d3d12.spec
index 9e79891..5c4f4cf 100644
--- a/dlls/d3d12/d3d12.spec
+++ b/dlls/d3d12/d3d12.spec
@@ -7,3 +7,5 @@
 @ stdcall D3D12CreateRootSignatureDeserializer(ptr long ptr ptr)
 @ stdcall D3D12SerializeRootSignature(ptr long ptr ptr)
 @ stdcall D3D12EnableExperimentalFeatures(long ptr ptr ptr)
+#@ stub D3D12CreateVersionedRootSignatureDeserializer
+@ stdcall D3D12SerializeVersionedRootSignature(ptr ptr ptr)
diff --git a/dlls/d3d12/d3d12_main.c b/dlls/d3d12/d3d12_main.c
index 92a235e..d6d691c 100644
--- a/dlls/d3d12/d3d12_main.c
+++ b/dlls/d3d12/d3d12_main.c
@@ -182,3 +182,16 @@ HRESULT WINAPI D3D12SerializeRootSignature(const D3D12_ROOT_SIGNATURE_DESC *root
 
     return vkd3d_serialize_root_signature(root_signature_desc, version, blob, error_blob);
 }
+
+HRESULT WINAPI D3D12SerializeVersionedRootSignature(const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *desc,
+        ID3DBlob **blob, ID3DBlob **error_blob)
+{
+    FIXME("desc %p, blob %p, error_blob %p partial-stub!\n",
+            desc, blob, error_blob);
+
+    if (desc->Version == D3D_ROOT_SIGNATURE_VERSION_1_0)
+        return D3D12SerializeRootSignature(&desc->Desc_1_0, desc->Version, blob, error_blob);
+
+    FIXME("Unsupported version %#x.\n", desc->Version);
+    return E_NOTIMPL;
+}
diff --git a/include/d3d12.idl b/include/d3d12.idl
index 307a4fd..3a5a914 100644
--- a/include/d3d12.idl
+++ b/include/d3d12.idl
@@ -2171,6 +2171,10 @@ interface ID3D12RootSignatureDeserializer : IUnknown
         const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *root_signature_desc,
         ID3DBlob **blob, ID3DBlob **error_blob);
 
+[local] HRESULT __stdcall D3D12SerializeVersionedRootSignature(
+        const D3D12_VERSIONED_ROOT_SIGNATURE_DESC *desc,
+        ID3DBlob **blob, ID3DBlob **error_blob);
+
 typedef HRESULT (__stdcall *PFN_D3D12_CREATE_DEVICE)(IUnknown *adapter,
         D3D_FEATURE_LEVEL minimum_feature_level, REFIID iid, void **device);
 




More information about the wine-cvs mailing list