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
286261f6
Commit
286261f6
authored
Dec 06, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Dec 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Reduce usage of long integral types in vertexdeclaration.c.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
d920aa81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+5
-5
wined3d.h
include/wine/wined3d.h
+1
-1
No files found.
dlls/wined3d/vertexdeclaration.c
View file @
286261f6
...
...
@@ -323,7 +323,7 @@ static void append_decl_element(struct wined3d_fvf_convert_state *state,
}
static
unsigned
int
convert_fvf_to_declaration
(
const
struct
wined3d_adapter
*
adapter
,
DWORD
fvf
,
struct
wined3d_vertex_element
**
elements
)
uint32_t
fvf
,
struct
wined3d_vertex_element
**
elements
)
{
BOOL
has_pos
=
!!
(
fvf
&
WINED3DFVF_POSITION_MASK
);
BOOL
has_blend
=
(
fvf
&
WINED3DFVF_XYZB5
)
>
WINED3DFVF_XYZRHW
;
...
...
@@ -336,12 +336,12 @@ static unsigned int convert_fvf_to_declaration(const struct wined3d_adapter *ada
BOOL
has_diffuse
=
!!
(
fvf
&
WINED3DFVF_DIFFUSE
);
BOOL
has_specular
=
!!
(
fvf
&
WINED3DFVF_SPECULAR
);
DWORD
num_textures
=
(
fvf
&
WINED3DFVF_TEXCOUNT_MASK
)
>>
WINED3DFVF_TEXCOUNT_SHIFT
;
DWORD
texcoords
=
(
fvf
&
0xffff0000
)
>>
16
;
unsigned
int
num_textures
=
(
fvf
&
WINED3DFVF_TEXCOUNT_MASK
)
>>
WINED3DFVF_TEXCOUNT_SHIFT
;
unsigned
int
texcoords
=
(
fvf
&
0xffff0000
)
>>
16
;
struct
wined3d_fvf_convert_state
state
;
unsigned
int
size
;
unsigned
int
idx
;
DWORD
num_blends
=
1
+
(((
fvf
&
WINED3DFVF_XYZB5
)
-
WINED3DFVF_XYZB1
)
>>
1
);
unsigned
int
num_blends
=
1
+
(((
fvf
&
WINED3DFVF_XYZB5
)
-
WINED3DFVF_XYZB1
)
>>
1
);
if
(
has_blend_idx
)
num_blends
--
;
/* Compute declaration size */
...
...
@@ -434,7 +434,7 @@ static unsigned int convert_fvf_to_declaration(const struct wined3d_adapter *ada
}
HRESULT
CDECL
wined3d_vertex_declaration_create_from_fvf
(
struct
wined3d_device
*
device
,
DWORD
fvf
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
uint32_t
fvf
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
struct
wined3d_vertex_declaration
**
declaration
)
{
struct
wined3d_vertex_element
*
elements
;
...
...
include/wine/wined3d.h
View file @
286261f6
...
...
@@ -2885,7 +2885,7 @@ HRESULT __cdecl wined3d_vertex_declaration_create(struct wined3d_device *device,
const
struct
wined3d_vertex_element
*
elements
,
UINT
element_count
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
struct
wined3d_vertex_declaration
**
declaration
);
HRESULT
__cdecl
wined3d_vertex_declaration_create_from_fvf
(
struct
wined3d_device
*
device
,
DWORD
fvf
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
uint32_t
fvf
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
struct
wined3d_vertex_declaration
**
declaration
);
ULONG
__cdecl
wined3d_vertex_declaration_decref
(
struct
wined3d_vertex_declaration
*
declaration
);
void
*
__cdecl
wined3d_vertex_declaration_get_parent
(
const
struct
wined3d_vertex_declaration
*
declaration
);
...
...
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