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
6d916dc3
Commit
6d916dc3
authored
Sep 14, 2015
by
Józef Kucia
Committed by
Alexandre Julliard
Sep 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core/tests: Check that shader resource view implements ID3D11ShaderResourceView.
parent
c32def6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
device.c
dlls/d3d10core/tests/device.c
+11
-0
No files found.
dlls/d3d10core/tests/device.c
View file @
6d916dc3
...
...
@@ -887,6 +887,7 @@ static void test_create_shader_resource_view(void)
ID3D10Device
*
device
,
*
tmp
;
ID3D10Texture2D
*
texture
;
ID3D10Buffer
*
buffer
;
IUnknown
*
iface
;
HRESULT
hr
;
if
(
!
(
device
=
create_device
()))
...
...
@@ -925,6 +926,11 @@ static void test_create_shader_resource_view(void)
ok
(
refcount
==
expected_refcount
,
"Got unexpected refcount %u, expected %u.
\n
"
,
refcount
,
expected_refcount
);
ID3D10Device_Release
(
tmp
);
hr
=
ID3D10ShaderResourceView_QueryInterface
(
srview
,
&
IID_ID3D11ShaderResourceView
,
(
void
**
)
&
iface
);
ok
(
SUCCEEDED
(
hr
)
||
broken
(
hr
==
E_NOINTERFACE
)
/* Not available on all Windows versions. */
,
"Shader resource view should implement ID3D11ShaderResourceView.
\n
"
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
iface
);
ID3D10ShaderResourceView_Release
(
srview
);
ID3D10Buffer_Release
(
buffer
);
...
...
@@ -954,6 +960,11 @@ static void test_create_shader_resource_view(void)
U
(
srv_desc
).
Texture2D
.
MostDetailedMip
);
ok
(
U
(
srv_desc
).
Texture2D
.
MipLevels
==
10
,
"Got unexpected MipLevels %u.
\n
"
,
U
(
srv_desc
).
Texture2D
.
MipLevels
);
hr
=
ID3D10ShaderResourceView_QueryInterface
(
srview
,
&
IID_ID3D11ShaderResourceView
,
(
void
**
)
&
iface
);
ok
(
SUCCEEDED
(
hr
)
||
broken
(
hr
==
E_NOINTERFACE
)
/* Not available on all Windows versions. */
,
"Shader resource view should implement ID3D11ShaderResourceView.
\n
"
);
if
(
SUCCEEDED
(
hr
))
IUnknown_Release
(
iface
);
ID3D10ShaderResourceView_Release
(
srview
);
ID3D10Texture2D_Release
(
texture
);
...
...
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