=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: vkd3d: Implement D3D12_FEATURE_SHADER_MODEL.

Alexandre Julliard julliard at winehq.org
Mon Oct 8 15:38:52 CDT 2018


Module: vkd3d
Branch: master
Commit: c296cbe30b3332d1b48341f78a173ec6adc94268
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=c296cbe30b3332d1b48341f78a173ec6adc94268

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Mon Oct  8 16:28:21 2018 +0200

vkd3d: Implement D3D12_FEATURE_SHADER_MODEL.

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>

---

 libs/vkd3d/device.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c
index f91c0d9..a839dcc 100644
--- a/libs/vkd3d/device.c
+++ b/libs/vkd3d/device.c
@@ -1804,9 +1804,32 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device *
             return S_OK;
         }
 
+        case D3D12_FEATURE_SHADER_MODEL:
+        {
+            D3D12_FEATURE_DATA_SHADER_MODEL *data = feature_data;
+
+            if (feature_data_size != sizeof(*data))
+            {
+                WARN("Invalid size %u.\n", feature_data_size);
+                return E_INVALIDARG;
+            }
+
+            TRACE("Request shader model %#x.\n", data->HighestShaderModel);
+
+            data->HighestShaderModel = D3D_SHADER_MODEL_5_1;
+            return S_OK;
+        }
+
         case D3D12_FEATURE_ROOT_SIGNATURE:
         {
             D3D12_FEATURE_DATA_ROOT_SIGNATURE *data = feature_data;
+
+            if (feature_data_size != sizeof(*data))
+            {
+                WARN("Invalid size %u.\n", feature_data_size);
+                return E_INVALIDARG;
+            }
+
             FIXME("Root signature version 1_1 not supported yet.\n");
             data->HighestVersion = D3D_ROOT_SIGNATURE_VERSION_1_0;
             return S_OK;




More information about the wine-cvs mailing list