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
d913744f
Commit
d913744f
authored
Apr 25, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d: Calculate the size of WINED3DFVF_XYZBx FVFs.
parent
34f95c68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
utils.c
dlls/ddraw/utils.c
+7
-2
utils.c
dlls/wined3d/utils.c
+7
-2
No files found.
dlls/ddraw/utils.c
View file @
d913744f
...
...
@@ -894,9 +894,14 @@ get_flexible_vertex_size(DWORD d3dvtVertexType)
if
(
d3dvtVertexType
&
D3DFVF_RESERVED1
)
size
+=
sizeof
(
DWORD
);
switch
(
d3dvtVertexType
&
D3DFVF_POSITION_MASK
)
{
case
D3DFVF_XYZ
:
size
+=
3
*
sizeof
(
D3DVALUE
);
break
;
case
D3DFVF_XYZ
:
size
+=
3
*
sizeof
(
D3DVALUE
);
break
;
case
D3DFVF_XYZRHW
:
size
+=
4
*
sizeof
(
D3DVALUE
);
break
;
default:
TRACE
(
" matrix weighting not handled yet...
\n
"
);
case
D3DFVF_XYZB1
:
size
+=
4
*
sizeof
(
D3DVALUE
);
break
;
case
D3DFVF_XYZB2
:
size
+=
5
*
sizeof
(
D3DVALUE
);
break
;
case
D3DFVF_XYZB3
:
size
+=
6
*
sizeof
(
D3DVALUE
);
break
;
case
D3DFVF_XYZB4
:
size
+=
7
*
sizeof
(
D3DVALUE
);
break
;
case
D3DFVF_XYZB5
:
size
+=
8
*
sizeof
(
D3DVALUE
);
break
;
default:
ERR
(
"Unexpected position mask
\n
"
);
}
for
(
i
=
0
;
i
<
GET_TEXCOUNT_FROM_FVF
(
d3dvtVertexType
);
i
++
)
{
...
...
dlls/wined3d/utils.c
View file @
d913744f
...
...
@@ -2488,9 +2488,14 @@ DWORD get_flexible_vertex_size(DWORD d3dvtVertexType) {
if
(
d3dvtVertexType
&
WINED3DFVF_SPECULAR
)
size
+=
sizeof
(
DWORD
);
if
(
d3dvtVertexType
&
WINED3DFVF_PSIZE
)
size
+=
sizeof
(
DWORD
);
switch
(
d3dvtVertexType
&
WINED3DFVF_POSITION_MASK
)
{
case
WINED3DFVF_XYZ
:
size
+=
3
*
sizeof
(
float
);
break
;
case
WINED3DFVF_XYZ
:
size
+=
3
*
sizeof
(
float
);
break
;
case
WINED3DFVF_XYZRHW
:
size
+=
4
*
sizeof
(
float
);
break
;
default
:
TRACE
(
" matrix weighting not handled yet...
\n
"
);
case
WINED3DFVF_XYZB1
:
size
+=
4
*
sizeof
(
float
);
break
;
case
WINED3DFVF_XYZB2
:
size
+=
5
*
sizeof
(
float
);
break
;
case
WINED3DFVF_XYZB3
:
size
+=
6
*
sizeof
(
float
);
break
;
case
WINED3DFVF_XYZB4
:
size
+=
7
*
sizeof
(
float
);
break
;
case
WINED3DFVF_XYZB5
:
size
+=
8
*
sizeof
(
float
);
break
;
default
:
ERR
(
"Unexpected position mask
\n
"
);
}
for
(
i
=
0
;
i
<
numTextures
;
i
++
)
{
size
+=
GET_TEXCOORD_SIZE_FROM_FVF
(
d3dvtVertexType
,
i
)
*
sizeof
(
float
);
...
...
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