Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b09d195b
Commit
b09d195b
authored
Apr 18, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Apr 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Add tests for ID3DXBaseEffect::G/SetValue().
parent
fcb5b6c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
effect.c
dlls/d3dx9_36/tests/effect.c
+18
-0
No files found.
dlls/d3dx9_36/tests/effect.c
View file @
b09d195b
...
@@ -1695,6 +1695,8 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device)
...
@@ -1695,6 +1695,8 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device)
* effect->lpVtbl->SetMatrixArray(effect, parameter, NULL, res_desc->Elements ? res_desc->Elements : 1);
* effect->lpVtbl->SetMatrixArray(effect, parameter, NULL, res_desc->Elements ? res_desc->Elements : 1);
* effect->lpVtbl->SetMatrixTranspose(effect, parameter, NULL);
* effect->lpVtbl->SetMatrixTranspose(effect, parameter, NULL);
* effect->lpVtbl->SetMatrixTransposeArray(effect, parameter, NULL, res_desc->Elements ? res_desc->Elements : 1);
* effect->lpVtbl->SetMatrixTransposeArray(effect, parameter, NULL, res_desc->Elements ? res_desc->Elements : 1);
* effect->lpVtbl->GetValue(effect, parameter, NULL, res_desc->Bytes);
* effect->lpVtbl->SetValue(effect, parameter, NULL, res_desc->Bytes);
*/
*/
hr
=
effect
->
lpVtbl
->
SetBool
(
effect
,
NULL
,
bvalue
);
hr
=
effect
->
lpVtbl
->
SetBool
(
effect
,
NULL
,
bvalue
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"%u - %s: SetBool failed, got %#x, expected %#x
\n
"
,
ok
(
hr
==
D3DERR_INVALIDCALL
,
"%u - %s: SetBool failed, got %#x, expected %#x
\n
"
,
...
@@ -1836,6 +1838,22 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device)
...
@@ -1836,6 +1838,22 @@ static void test_effect_parameter_value(IDirect3DDevice9 *device)
ok
(
hr
==
D3DERR_INVALIDCALL
,
"%u - %s: GetMatrixTransposeArray failed, got %#x, expected %#x
\n
"
,
ok
(
hr
==
D3DERR_INVALIDCALL
,
"%u - %s: GetMatrixTransposeArray failed, got %#x, expected %#x
\n
"
,
i
,
res_full_name
,
hr
,
D3DERR_INVALIDCALL
);
i
,
res_full_name
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
effect
->
lpVtbl
->
SetValue
(
effect
,
NULL
,
input_value
,
res_desc
->
Bytes
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"%u - %s: SetValue failed, got %#x, expected %#x
\n
"
,
i
,
res_full_name
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
effect
->
lpVtbl
->
SetValue
(
effect
,
parameter
,
input_value
,
res_desc
->
Bytes
-
1
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"%u - %s: SetValue failed, got %#x, expected %#x
\n
"
,
i
,
res_full_name
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
effect
->
lpVtbl
->
GetValue
(
effect
,
NULL
,
input_value
,
res_desc
->
Bytes
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"%u - %s: GetValue failed, got %#x, expected %#x
\n
"
,
i
,
res_full_name
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
effect
->
lpVtbl
->
GetValue
(
effect
,
parameter
,
input_value
,
res_desc
->
Bytes
-
1
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"%u - %s: GetValue failed, got %#x, expected %#x
\n
"
,
i
,
res_full_name
,
hr
,
D3DERR_INVALIDCALL
);
test_effect_parameter_value_GetTestGroup
(
&
res
[
k
],
effect
,
&
blob
[
res_value_offset
],
parameter
,
i
);
test_effect_parameter_value_GetTestGroup
(
&
res
[
k
],
effect
,
&
blob
[
res_value_offset
],
parameter
,
i
);
/* SetBool */
/* SetBool */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment