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
ec248a9e
Commit
ec248a9e
authored
May 25, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
May 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core/tests: Add a test for constant buffer alignment.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5d4b5d73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
device.c
dlls/d3d10core/tests/device.c
+13
-1
No files found.
dlls/d3d10core/tests/device.c
View file @
ec248a9e
...
...
@@ -1699,12 +1699,12 @@ static void test_create_texture3d(void)
static
void
test_create_buffer
(
void
)
{
ID3D11Buffer
*
d3d11_buffer
;
HRESULT
expected_hr
,
hr
;
D3D10_BUFFER_DESC
desc
;
ID3D10Buffer
*
buffer
;
ID3D10Device
*
device
;
unsigned
int
i
;
ULONG
refcount
;
HRESULT
hr
;
static
const
struct
test
{
...
...
@@ -1820,6 +1820,18 @@ static void test_create_buffer(void)
if
(
SUCCEEDED
(
hr
))
ID3D10Buffer_Release
(
buffer
);
memset
(
&
desc
,
0
,
sizeof
(
desc
));
desc
.
BindFlags
=
D3D10_BIND_CONSTANT_BUFFER
;
for
(
i
=
0
;
i
<=
32
;
++
i
)
{
desc
.
ByteWidth
=
i
;
expected_hr
=
!
i
||
i
%
16
?
E_INVALIDARG
:
S_OK
;
hr
=
ID3D10Device_CreateBuffer
(
device
,
&
desc
,
NULL
,
&
buffer
);
ok
(
hr
==
expected_hr
,
"Got unexpected hr %#x for constant buffer size %u.
\n
"
,
hr
,
i
);
if
(
SUCCEEDED
(
hr
))
ID3D10Buffer_Release
(
buffer
);
}
refcount
=
ID3D10Device_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