Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
00e7ec9c
Commit
00e7ec9c
authored
Oct 08, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Add some tests for CreateStateBlock().
parent
dfe07023
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
stateblock.c
dlls/d3d8/tests/stateblock.c
+30
-0
No files found.
dlls/d3d8/tests/stateblock.c
View file @
00e7ec9c
...
...
@@ -297,6 +297,16 @@ static int revert_render_target(IDirect3DDevice8 *device, struct event_data *eve
return
EVENT_OK
;
}
static
int
create_stateblock
(
IDirect3DDevice8
*
device
,
struct
event_data
*
event_data
)
{
HRESULT
hr
;
hr
=
IDirect3DDevice8_CreateStateBlock
(
device
,
D3DSBT_ALL
,
&
event_data
->
stateblock
);
ok
(
SUCCEEDED
(
hr
),
"CreateStateBlock returned %#x.
\n
"
,
hr
);
if
(
FAILED
(
hr
))
return
EVENT_ERROR
;
return
EVENT_OK
;
}
static
int
begin_stateblock
(
IDirect3DDevice8
*
device
,
struct
event_data
*
event_data
)
{
HRESULT
hr
;
...
...
@@ -385,6 +395,20 @@ static void execute_test_chain_all(IDirect3DDevice8 *device, struct state_test *
{
apply_stateblock
,
SB_DATA_DEFAULT
,
SB_DATA_NONE
},
};
struct
event
create_stateblock_capture_apply_events
[]
=
{
{
create_stateblock
,
SB_DATA_DEFAULT
,
SB_DATA_TEST_IN
},
{
capture_stateblock
,
SB_DATA_TEST
,
SB_DATA_DEFAULT
},
{
apply_stateblock
,
SB_DATA_TEST
,
SB_DATA_NONE
},
};
struct
event
create_stateblock_apply_events
[]
=
{
{
NULL
,
SB_DATA_DEFAULT
,
SB_DATA_TEST_IN
},
{
create_stateblock
,
SB_DATA_TEST
,
SB_DATA_DEFAULT
},
{
apply_stateblock
,
SB_DATA_TEST
,
SB_DATA_NONE
},
};
struct
event
rendertarget_switch_events
[]
=
{
{
NULL
,
SB_DATA_NONE
,
SB_DATA_TEST_IN
},
...
...
@@ -424,6 +448,12 @@ static void execute_test_chain_all(IDirect3DDevice8 *device, struct state_test *
trace
(
"Running stateblock capture/reapply state tests
\n
"
);
execute_test_chain
(
device
,
test
,
ntests
,
capture_reapply_stateblock_events
,
4
,
&
arg
);
trace
(
"Running create stateblock capture/apply state tests
\n
"
);
execute_test_chain
(
device
,
test
,
ntests
,
create_stateblock_capture_apply_events
,
3
,
&
arg
);
trace
(
"Running create stateblock apply state tests
\n
"
);
execute_test_chain
(
device
,
test
,
ntests
,
create_stateblock_apply_events
,
3
,
&
arg
);
trace
(
"Running rendertarget switch state tests
\n
"
);
execute_test_chain
(
device
,
test
,
ntests
,
rendertarget_switch_events
,
3
,
&
arg
);
...
...
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