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
aa73def8
Commit
aa73def8
authored
Aug 15, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10_1/tests: Use nameless unions/structs.
parent
35922928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
d3d10_1.c
dlls/d3d10_1/tests/d3d10_1.c
+5
-5
No files found.
dlls/d3d10_1/tests/d3d10_1.c
View file @
aa73def8
...
...
@@ -374,8 +374,8 @@ static void test_create_shader_resource_view(void)
srv_desc
.
Format
=
DXGI_FORMAT_R32G32B32A32_FLOAT
;
srv_desc
.
ViewDimension
=
D3D10_1_SRV_DIMENSION_BUFFER
;
U
(
srv_desc
)
.
Buffer
.
ElementOffset
=
0
;
U
(
srv_desc
)
.
Buffer
.
ElementWidth
=
64
;
srv_desc
.
Buffer
.
ElementOffset
=
0
;
srv_desc
.
Buffer
.
ElementWidth
=
64
;
hr
=
ID3D10Device1_CreateShaderResourceView1
(
device
,
NULL
,
&
srv_desc
,
&
srview
);
ok
(
hr
==
E_INVALIDARG
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
...
...
@@ -437,9 +437,9 @@ static void test_create_shader_resource_view(void)
ok
(
srv_desc
.
Format
==
texture_desc
.
Format
,
"Got unexpected format %#x.
\n
"
,
srv_desc
.
Format
);
ok
(
srv_desc
.
ViewDimension
==
D3D10_1_SRV_DIMENSION_TEXTURE2D
,
"Got unexpected view dimension %#x.
\n
"
,
srv_desc
.
ViewDimension
);
ok
(
U
(
srv_desc
)
.
Texture2D
.
MostDetailedMip
==
0
,
"Got unexpected MostDetailedMip %u.
\n
"
,
U
(
srv_desc
)
.
Texture2D
.
MostDetailedMip
);
ok
(
U
(
srv_desc
).
Texture2D
.
MipLevels
==
10
,
"Got unexpected MipLevels %u.
\n
"
,
U
(
srv_desc
)
.
Texture2D
.
MipLevels
);
ok
(
srv_desc
.
Texture2D
.
MostDetailedMip
==
0
,
"Got unexpected MostDetailedMip %u.
\n
"
,
srv_desc
.
Texture2D
.
MostDetailedMip
);
ok
(
srv_desc
.
Texture2D
.
MipLevels
==
10
,
"Got unexpected MipLevels %u.
\n
"
,
srv_desc
.
Texture2D
.
MipLevels
);
check_interface
(
srview
,
&
IID_ID3D10ShaderResourceView
,
TRUE
,
FALSE
);
/* Not available on all Windows versions. */
...
...
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