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
c97c5112
Commit
c97c5112
authored
May 30, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
May 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core/tests: Add a small test for ID3D10Device_CreatePredicate().
parent
7b84e323
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
device.c
dlls/d3d10core/tests/device.c
+37
-0
No files found.
dlls/d3d10core/tests/device.c
View file @
c97c5112
...
...
@@ -762,6 +762,42 @@ static void test_create_rasterizer_state(void)
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
}
static
void
test_create_predicate
(
void
)
{
D3D10_QUERY_DESC
query_desc
;
ID3D10Predicate
*
predicate
;
ID3D10Device
*
device
;
ULONG
refcount
;
HRESULT
hr
;
if
(
!
(
device
=
create_device
()))
{
skip
(
"Failed to create device, skipping tests.
\n
"
);
return
;
}
hr
=
ID3D10Device_CreatePredicate
(
device
,
NULL
,
&
predicate
);
ok
(
hr
==
E_INVALIDARG
,
"Got unexpected hr %#x.
\n
"
,
hr
);
query_desc
.
Query
=
D3D10_QUERY_OCCLUSION
;
query_desc
.
MiscFlags
=
0
;
hr
=
ID3D10Device_CreatePredicate
(
device
,
&
query_desc
,
&
predicate
);
ok
(
hr
==
E_INVALIDARG
,
"Got unexpected hr %#x.
\n
"
,
hr
);
query_desc
.
Query
=
D3D10_QUERY_OCCLUSION_PREDICATE
;
hr
=
ID3D10Device_CreatePredicate
(
device
,
&
query_desc
,
&
predicate
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create predicate, hr %#x.
\n
"
,
hr
);
ID3D10Predicate_Release
(
predicate
);
query_desc
.
Query
=
D3D10_QUERY_SO_OVERFLOW_PREDICATE
;
hr
=
ID3D10Device_CreatePredicate
(
device
,
&
query_desc
,
&
predicate
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create predicate, hr %#x.
\n
"
,
hr
);
ID3D10Predicate_Release
(
predicate
);
refcount
=
ID3D10Device_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
}
START_TEST
(
device
)
{
test_device_interfaces
();
...
...
@@ -775,4 +811,5 @@ START_TEST(device)
test_create_blend_state
();
test_create_depthstencil_state
();
test_create_rasterizer_state
();
test_create_predicate
();
}
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