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
bd9320f8
Commit
bd9320f8
authored
Jan 16, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxgi: Add a small test for CreateSurface().
parent
a966293f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
device.c
dlls/dxgi/tests/device.c
+24
-0
No files found.
dlls/dxgi/tests/device.c
View file @
bd9320f8
...
...
@@ -98,6 +98,29 @@ static void test_device_interfaces(IDXGIDevice *device)
ok
(
SUCCEEDED
(
hr
),
"IDXGIDevice does not implement ID3D10Device
\n
"
);
}
static
void
test_create_surface
(
IDXGIDevice
*
device
)
{
ID3D10Texture2D
*
texture
;
IDXGISurface
*
surface
;
DXGI_SURFACE_DESC
desc
;
HRESULT
hr
;
desc
.
Width
=
512
;
desc
.
Height
=
512
;
desc
.
Format
=
DXGI_FORMAT_R8G8B8A8_UNORM
;
desc
.
SampleDesc
.
Count
=
1
;
desc
.
SampleDesc
.
Quality
=
0
;
hr
=
IDXGIDevice_CreateSurface
(
device
,
&
desc
,
1
,
DXGI_USAGE_RENDER_TARGET_OUTPUT
,
NULL
,
&
surface
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create a dxgi surface, hr %#x
\n
"
,
hr
);
hr
=
IDXGISurface_QueryInterface
(
surface
,
&
IID_ID3D10Texture2D
,
(
void
**
)
&
texture
);
todo_wine
ok
(
SUCCEEDED
(
hr
),
"Surface should implement ID3D10Texture2D
\n
"
);
if
(
SUCCEEDED
(
hr
))
ID3D10Texture2D_Release
(
texture
);
IDXGISurface_Release
(
surface
);
}
START_TEST
(
device
)
{
HMODULE
d3d10core
=
LoadLibraryA
(
"d3d10core.dll"
);
...
...
@@ -119,6 +142,7 @@ START_TEST(device)
}
test_device_interfaces
(
device
);
test_create_surface
(
device
);
refcount
=
IDXGIDevice_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left
\n
"
,
refcount
);
...
...
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