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
b644d113
Commit
b644d113
authored
Dec 02, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Add a small test for IDirect3D9Ex::GetAdapterLUID().
parent
ed73f0a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
d3d9ex.c
dlls/d3d9/tests/d3d9ex.c
+33
-0
No files found.
dlls/d3d9/tests/d3d9ex.c
View file @
b644d113
...
...
@@ -184,6 +184,38 @@ out:
DestroyWindow
(
window
);
}
static
void
test_get_adapter_luid
(
void
)
{
HWND
window
=
create_window
();
IDirect3D9Ex
*
d3d9ex
;
UINT
count
;
HRESULT
hr
;
LUID
luid
;
hr
=
pDirect3DCreate9Ex
(
D3D_SDK_VERSION
,
&
d3d9ex
);
if
(
FAILED
(
hr
))
{
skip
(
"Direct3D9Ex is not available.
\n
"
);
DestroyWindow
(
window
);
return
;
}
count
=
IDirect3D9Ex_GetAdapterCount
(
d3d9ex
);
if
(
!
count
)
{
skip
(
"No adapters available.
\n
"
);
IDirect3D9Ex_Release
(
d3d9ex
);
DestroyWindow
(
window
);
return
;
}
hr
=
IDirect3D9Ex_GetAdapterLUID
(
d3d9ex
,
D3DADAPTER_DEFAULT
,
&
luid
);
ok
(
SUCCEEDED
(
hr
),
"GetAdapterLUID failed, hr %#x.
\n
"
,
hr
);
trace
(
"adapter luid: %08x:%08x.
\n
"
,
luid
.
HighPart
,
luid
.
LowPart
);
IDirect3D9Ex_Release
(
d3d9ex
);
}
START_TEST
(
d3d9ex
)
{
d3d9_handle
=
LoadLibraryA
(
"d3d9.dll"
);
...
...
@@ -206,4 +238,5 @@ START_TEST(d3d9ex)
test_qi_base_to_ex
();
test_qi_ex_to_base
();
test_get_adapter_luid
();
}
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