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
670f0efe
Commit
670f0efe
authored
Apr 01, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Apr 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Add ID3DXBuffer test.
parent
1fcce558
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
core.c
dlls/d3dx9_36/tests/core.c
+30
-0
No files found.
dlls/d3dx9_36/tests/core.c
View file @
670f0efe
...
...
@@ -62,6 +62,35 @@ static inline void check_mat(D3DXMATRIX got, D3DXMATRIX exp)
U
(
exp
).
m
[
3
][
0
],
U
(
exp
).
m
[
3
][
1
],
U
(
exp
).
m
[
3
][
2
],
U
(
exp
).
m
[
3
][
3
]);
}
static
void
test_ID3DXBuffer
(
void
)
{
ID3DXBuffer
*
buffer
;
HRESULT
hr
;
ULONG
count
;
DWORD
size
;
hr
=
D3DXCreateBuffer
(
10
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"D3DXCreateBuffer failed, got %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
D3DXCreateBuffer
(
0
,
&
buffer
);
ok
(
hr
==
D3D_OK
,
"D3DXCreateBuffer failed, got %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
size
=
ID3DXBuffer_GetBufferSize
(
buffer
);
ok
(
!
size
,
"GetBufferSize failed, got %u, expected %u
\n
"
,
size
,
0
);
count
=
ID3DXBuffer_Release
(
buffer
);
ok
(
!
count
,
"ID3DBuffer has %u references left
\n
"
,
count
);
hr
=
D3DXCreateBuffer
(
3
,
&
buffer
);
ok
(
hr
==
D3D_OK
,
"D3DXCreateBuffer failed, got %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
size
=
ID3DXBuffer_GetBufferSize
(
buffer
);
ok
(
size
==
3
,
"GetBufferSize failed, got %u, expected %u
\n
"
,
size
,
3
);
count
=
ID3DXBuffer_Release
(
buffer
);
ok
(
!
count
,
"ID3DBuffer has %u references left
\n
"
,
count
);
}
static
void
test_ID3DXSprite
(
IDirect3DDevice9
*
device
)
{
ID3DXSprite
*
sprite
;
...
...
@@ -448,6 +477,7 @@ START_TEST(core)
return
;
}
test_ID3DXBuffer
();
test_ID3DXSprite
(
device
);
test_ID3DXFont
(
device
);
...
...
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