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
c35c30fa
Commit
c35c30fa
authored
Jan 18, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DDECLMETHOD typedef.
parent
67d4be03
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
24 deletions
+26
-24
inputlayout.c
dlls/d3d10core/inputlayout.c
+1
-1
vertexdeclaration.c
dlls/d3d8/vertexdeclaration.c
+1
-1
utils.c
dlls/wined3d/utils.c
+12
-10
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
wined3d.h
include/wine/wined3d.h
+10
-10
No files found.
dlls/d3d10core/inputlayout.c
View file @
c35c30fa
...
...
@@ -80,7 +80,7 @@ static HRESULT d3d10_input_layout_to_wined3d_declaration(const D3D10_INPUT_ELEME
e
->
input_slot
=
f
->
InputSlot
;
e
->
offset
=
f
->
AlignedByteOffset
;
e
->
output_slot
=
is
.
elements
[
j
].
register_idx
;
e
->
method
=
WINED3D
DECL
METHOD_DEFAULT
;
e
->
method
=
WINED3D
_DECL_
METHOD_DEFAULT
;
e
->
usage
=
0
;
e
->
usage_idx
=
0
;
...
...
dlls/d3d8/vertexdeclaration.c
View file @
c35c30fa
...
...
@@ -335,7 +335,7 @@ static UINT convert_to_wined3d_declaration(const DWORD *d3d8_elements, DWORD *d3
element
->
input_slot
=
stream
;
element
->
offset
=
offset
;
element
->
output_slot
=
reg
;
element
->
method
=
WINED3D
DECL
METHOD_DEFAULT
;
element
->
method
=
WINED3D
_DECL_
METHOD_DEFAULT
;
element
->
usage
=
wined3d_usage_lookup
[
reg
].
usage
;
element
->
usage_idx
=
wined3d_usage_lookup
[
reg
].
usage_idx
;
...
...
dlls/wined3d/utils.c
View file @
c35c30fa
...
...
@@ -1934,19 +1934,21 @@ const char *debug_d3dusagequery(DWORD usagequery)
return
buf
[
0
]
?
wine_dbg_sprintf
(
"%s"
,
&
buf
[
3
])
:
"0"
;
}
const
char
*
debug_d3ddeclmethod
(
WINED3DDECLMETHOD
method
)
{
switch
(
method
)
{
const
char
*
debug_d3ddeclmethod
(
enum
wined3d_decl_method
method
)
{
switch
(
method
)
{
#define WINED3DDECLMETHOD_TO_STR(u) case u: return #u
WINED3DDECLMETHOD_TO_STR
(
WINED3D
DECL
METHOD_DEFAULT
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
DECLMETHOD_PARTIAL
U
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
DECLMETHOD_PARTIAL
V
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
DECLMETHOD_CROSS
UV
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
DECL
METHOD_UV
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
DECL
METHOD_LOOKUP
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
DECLMETHOD_LOOKUP
PRESAMPLED
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
_DECL_
METHOD_DEFAULT
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
_DECL_METHOD_PARTIAL_
U
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
_DECL_METHOD_PARTIAL_
V
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
_DECL_METHOD_CROSS_
UV
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
_DECL_
METHOD_UV
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
_DECL_
METHOD_LOOKUP
);
WINED3DDECLMETHOD_TO_STR
(
WINED3D
_DECL_METHOD_LOOKUP_
PRESAMPLED
);
#undef WINED3DDECLMETHOD_TO_STR
default:
FIXME
(
"Unrecognized
%u declaration method!
\n
"
,
method
);
FIXME
(
"Unrecognized
declaration method %#x.
\n
"
,
method
);
return
"unrecognized"
;
}
}
...
...
dlls/wined3d/vertexdeclaration.c
View file @
c35c30fa
...
...
@@ -289,7 +289,7 @@ static void append_decl_element(struct wined3d_fvf_convert_state *state,
elements
[
idx
].
input_slot
=
0
;
elements
[
idx
].
offset
=
offset
;
elements
[
idx
].
output_slot
=
0
;
elements
[
idx
].
method
=
WINED3D
DECL
METHOD_DEFAULT
;
elements
[
idx
].
method
=
WINED3D
_DECL_
METHOD_DEFAULT
;
elements
[
idx
].
usage
=
usage
;
elements
[
idx
].
usage_idx
=
usage_idx
;
...
...
dlls/wined3d/wined3d_private.h
View file @
c35c30fa
...
...
@@ -2491,7 +2491,7 @@ const char *debug_d3ddevicetype(enum wined3d_device_type device_type) DECLSPEC_H
const
char
*
debug_d3dresourcetype
(
enum
wined3d_resource_type
resource_type
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dusage
(
DWORD
usage
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dusagequery
(
DWORD
usagequery
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3ddeclmethod
(
WINED3DDECLMETHOD
method
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3ddeclmethod
(
enum
wined3d_decl_method
method
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3ddeclusage
(
BYTE
usage
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dprimitivetype
(
enum
wined3d_primitive_type
primitive_type
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3drenderstate
(
enum
wined3d_render_state
state
)
DECLSPEC_HIDDEN
;
...
...
include/wine/wined3d.h
View file @
c35c30fa
...
...
@@ -719,16 +719,16 @@ enum wined3d_stateblock_type
WINED3D_SBT_RECORDED
=
4
,
/* WineD3D private */
};
typedef
enum
_WINED3DDECLMETHOD
{
WINED3D
DECLMETHOD_DEFAULT
=
0
,
WINED3D
DECLMETHOD_PARTIALU
=
1
,
WINED3D
DECLMETHOD_PARTIALV
=
2
,
WINED3D
DECLMETHOD_CROSSUV
=
3
,
WINED3D
DECLMETHOD_UV
=
4
,
WINED3D
DECLMETHOD_LOOKUP
=
5
,
WINED3D
DECLMETHOD_LOOKUPPRESAMPLED
=
6
}
WINED3DDECLMETHOD
;
enum
wined3d_decl_method
{
WINED3D
_DECL_METHOD_DEFAULT
=
0
,
WINED3D
_DECL_METHOD_PARTIAL_U
=
1
,
WINED3D
_DECL_METHOD_PARTIAL_V
=
2
,
WINED3D
_DECL_METHOD_CROSS_UV
=
3
,
WINED3D
_DECL_METHOD_UV
=
4
,
WINED3D
_DECL_METHOD_LOOKUP
=
5
,
WINED3D
_DECL_METHOD_LOOKUP_PRESAMPLED
=
6
,
};
typedef
enum
_WINED3DDECLUSAGE
{
...
...
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