Nikolay Sivov : d3d10/tests: Test SystemValueType field.
Alexandre Julliard
julliard at winehq.org
Fri Sep 10 15:29:46 CDT 2021
Module: wine
Branch: master
Commit: e5e6000654d42a513c4fff95f1d30e16dd07d450
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e5e6000654d42a513c4fff95f1d30e16dd07d450
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu Sep 9 08:57:35 2021 +0300
d3d10/tests: Test SystemValueType field.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d10/tests/effect.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/dlls/d3d10/tests/effect.c b/dlls/d3d10/tests/effect.c
index 60db5ad55be..7923f70ed1e 100644
--- a/dlls/d3d10/tests/effect.c
+++ b/dlls/d3d10/tests/effect.c
@@ -3698,18 +3698,25 @@ if (0)
hr = ps->lpVtbl->GetOutputSignatureElementDesc(ps, 0, 0, &sign);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(!strcmp(sign.SemanticName, "SV_Target"), "Unexpected semantic %s.\n", sign.SemanticName);
+todo_wine
+ ok(!sign.SystemValueType, "Unexpected system value type %u.\n", sign.SystemValueType);
hr = ps->lpVtbl->GetOutputSignatureElementDesc(ps, 4, 0, &sign);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(!strcmp(sign.SemanticName, "SV_POSITION"), "Unexpected semantic %s.\n", sign.SemanticName);
+ ok(sign.SystemValueType == D3D10_NAME_POSITION, "Unexpected system value type %u.\n",
+ sign.SystemValueType);
hr = ps->lpVtbl->GetInputSignatureElementDesc(ps, 0, 0, &sign);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(!strcmp(sign.SemanticName, "SV_POSITION"), "Unexpected semantic %s.\n", sign.SemanticName);
+ ok(sign.SystemValueType == D3D10_NAME_POSITION, "Unexpected system value type %u.\n",
+ sign.SystemValueType);
hr = ps->lpVtbl->GetInputSignatureElementDesc(ps, 4, 0, &sign);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(!strcmp(sign.SemanticName, "POSITION"), "Unexpected semantic %s.\n", sign.SemanticName);
+ ok(!sign.SystemValueType, "Unexpected system value type %u.\n", sign.SystemValueType);
v = effect->lpVtbl->GetVariableByName(effect, "v");
vs = v->lpVtbl->AsShader(v);
@@ -3717,18 +3724,24 @@ if (0)
hr = vs->lpVtbl->GetOutputSignatureElementDesc(vs, 0, 0, &sign);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(!strcmp(sign.SemanticName, "SV_POSITION"), "Unexpected semantic %s.\n", sign.SemanticName);
+ ok(sign.SystemValueType == D3D10_NAME_POSITION, "Unexpected system value type %u.\n",
+ sign.SystemValueType);
hr = vs->lpVtbl->GetOutputSignatureElementDesc(vs, 1, 0, &sign);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(!strcmp(sign.SemanticName, "SV_POSITION"), "Unexpected semantic %s.\n", sign.SemanticName);
+ ok(sign.SystemValueType == D3D10_NAME_POSITION, "Unexpected system value type %u.\n",
+ sign.SystemValueType);
hr = vs->lpVtbl->GetInputSignatureElementDesc(vs, 0, 0, &sign);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(!strcmp(sign.SemanticName, "POSITION"), "Unexpected semantic %s.\n", sign.SemanticName);
+ ok(!sign.SystemValueType, "Unexpected system value type %u.\n", sign.SystemValueType);
hr = vs->lpVtbl->GetInputSignatureElementDesc(vs, 1, 0, &sign);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(!strcmp(sign.SemanticName, "POSITION"), "Unexpected semantic %s.\n", sign.SemanticName);
+ ok(!sign.SystemValueType, "Unexpected system value type %u.\n", sign.SystemValueType);
/* NULL shader variable */
v = effect->lpVtbl->GetVariableByName(effect, "v0");
@@ -3746,6 +3759,8 @@ if (0)
hr = vs->lpVtbl->GetOutputSignatureElementDesc(vs, 3, 0, &sign);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(!strcmp(sign.SemanticName, "SV_POSITION"), "Unexpected semantic %s.\n", sign.SemanticName);
+ ok(sign.SystemValueType == D3D10_NAME_POSITION, "Unexpected system value type %u.\n",
+ sign.SystemValueType);
hr = vs->lpVtbl->GetInputSignatureElementDesc(vs, 0, 0, &sign);
ok(hr == D3DERR_INVALIDCALL, "Unexpected hr %#x.\n", hr);
@@ -3759,6 +3774,7 @@ if (0)
hr = vs->lpVtbl->GetInputSignatureElementDesc(vs, 3, 0, &sign);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(!strcmp(sign.SemanticName, "POSITION"), "Unexpected semantic %s.\n", sign.SemanticName);
+ ok(!sign.SystemValueType, "Unexpected system value type %u.\n", sign.SystemValueType);
effect->lpVtbl->Release(effect);
More information about the wine-cvs
mailing list