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
cd72aef0
Commit
cd72aef0
authored
Jul 07, 2010
by
Misha Koshelev
Committed by
Alexandre Julliard
Jul 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Test penultimate declaration element in D3DXDeclaratorFromFVFTest.
parent
5ef7e7b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
mesh.c
dlls/d3dx9_36/tests/mesh.c
+10
-7
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
cd72aef0
...
...
@@ -229,7 +229,7 @@ static void D3DXDeclaratorFromFVFTest(void)
{
D3DVERTEXELEMENT9
decl
[
MAX_FVF_DECL_SIZE
];
HRESULT
hr
;
int
i
;
int
i
,
size
;
static
const
D3DVERTEXELEMENT9
exp1
[
6
]
=
{
{
0
,
0
,
D3DDECLTYPE_FLOAT3
,
D3DDECLMETHOD_DEFAULT
,
D3DDECLUSAGE_POSITION
,
0
},
...
...
@@ -262,7 +262,8 @@ static void D3DXDeclaratorFromFVFTest(void)
if
(
hr
==
D3D_OK
)
{
for
(
i
=
0
;
i
<
4
;
i
++
)
size
=
sizeof
(
exp1
)
/
sizeof
(
exp1
[
0
]);
for
(
i
=
0
;
i
<
size
-
1
;
i
++
)
{
ok
(
decl
[
i
].
Stream
==
exp1
[
i
].
Stream
,
"Returned stream %d, expected %d
\n
"
,
decl
[
i
].
Stream
,
exp1
[
i
].
Stream
);
ok
(
decl
[
i
].
Type
==
exp1
[
i
].
Type
,
"Returned type %d, expected %d
\n
"
,
decl
[
i
].
Type
,
exp1
[
i
].
Type
);
...
...
@@ -271,7 +272,7 @@ static void D3DXDeclaratorFromFVFTest(void)
ok
(
decl
[
i
].
UsageIndex
==
exp1
[
i
].
UsageIndex
,
"Returned usage index %d, expected %d
\n
"
,
decl
[
i
].
UsageIndex
,
exp1
[
i
].
UsageIndex
);
ok
(
decl
[
i
].
Offset
==
exp1
[
i
].
Offset
,
"Returned offset %d, expected %d
\n
"
,
decl
[
1
].
Offset
,
exp1
[
i
].
Offset
);
}
ok
(
decl
[
5
].
Stream
==
0xFF
,
"Returned too long vertex declaration
\n
"
);
/* end element */
ok
(
decl
[
size
-
1
].
Stream
==
0xFF
,
"Returned too long vertex declaration
\n
"
);
/* end element */
}
}
...
...
@@ -282,7 +283,8 @@ static void D3DXDeclaratorFromFVFTest(void)
if
(
hr
==
D3D_OK
)
{
for
(
i
=
0
;
i
<
1
;
i
++
)
size
=
sizeof
(
exp2
)
/
sizeof
(
exp2
[
0
]);
for
(
i
=
0
;
i
<
size
-
1
;
i
++
)
{
ok
(
decl
[
i
].
Stream
==
exp2
[
i
].
Stream
,
"Returned stream %d, expected %d
\n
"
,
decl
[
i
].
Stream
,
exp2
[
i
].
Stream
);
ok
(
decl
[
i
].
Type
==
exp2
[
i
].
Type
,
"Returned type %d, expected %d
\n
"
,
decl
[
i
].
Type
,
exp1
[
i
].
Type
);
...
...
@@ -291,7 +293,7 @@ static void D3DXDeclaratorFromFVFTest(void)
ok
(
decl
[
i
].
UsageIndex
==
exp2
[
i
].
UsageIndex
,
"Returned usage index %d, expected %d
\n
"
,
decl
[
i
].
UsageIndex
,
exp2
[
i
].
UsageIndex
);
ok
(
decl
[
i
].
Offset
==
exp2
[
i
].
Offset
,
"Returned offset %d, expected %d
\n
"
,
decl
[
1
].
Offset
,
exp2
[
i
].
Offset
);
}
ok
(
decl
[
2
].
Stream
==
0xFF
,
"Returned too long vertex declaration
\n
"
);
/* end element */
ok
(
decl
[
size
-
1
].
Stream
==
0xFF
,
"Returned too long vertex declaration
\n
"
);
/* end element */
}
}
...
...
@@ -305,7 +307,8 @@ static void D3DXDeclaratorFromFVFTest(void)
if
(
hr
==
D3D_OK
)
{
for
(
i
=
0
;
i
<
2
;
i
++
)
size
=
sizeof
(
exp3
)
/
sizeof
(
exp3
[
0
]);
for
(
i
=
0
;
i
<
size
-
1
;
i
++
)
{
ok
(
decl
[
i
].
Stream
==
exp3
[
i
].
Stream
,
"Returned stream %d, expected %d
\n
"
,
decl
[
i
].
Stream
,
exp3
[
i
].
Stream
);
ok
(
decl
[
i
].
Type
==
exp3
[
i
].
Type
,
"Returned type %d, expected %d
\n
"
,
decl
[
i
].
Type
,
exp3
[
i
].
Type
);
...
...
@@ -314,7 +317,7 @@ static void D3DXDeclaratorFromFVFTest(void)
ok
(
decl
[
i
].
UsageIndex
==
exp3
[
i
].
UsageIndex
,
"Returned usage index %d, expected %d
\n
"
,
decl
[
i
].
UsageIndex
,
exp3
[
i
].
UsageIndex
);
ok
(
decl
[
i
].
Offset
==
exp3
[
i
].
Offset
,
"Returned offset %d, expected %d
\n
"
,
decl
[
1
].
Offset
,
exp3
[
i
].
Offset
);
}
ok
(
decl
[
3
].
Stream
==
0xFF
,
"Returned too long vertex declaration
\n
"
);
/* end element */
ok
(
decl
[
size
-
1
].
Stream
==
0xFF
,
"Returned too long vertex declaration
\n
"
);
/* end element */
}
}
}
...
...
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