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
d18fb861
Commit
d18fb861
authored
Feb 28, 2019
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Get rid of the ID3DXEffectImpl #define.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
101710c7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
effect.c
dlls/d3dx9_36/effect.c
+10
-12
No files found.
dlls/d3dx9_36/effect.c
View file @
d18fb861
...
...
@@ -148,11 +148,9 @@ struct d3dx_technique
struct
IDirect3DStateBlock9
*
saved_state
;
};
#define ID3DXEffectImpl d3dx_effect
struct
d3dx9_base_effect
{
struct
ID3DXEffectImpl
*
effect
;
struct
d3dx_effect
*
effect
;
UINT
parameter_count
;
UINT
technique_count
;
...
...
@@ -718,7 +716,7 @@ static void d3dx9_base_effect_cleanup(struct d3dx9_base_effect *base)
}
}
static
void
free_effect
(
struct
ID3DXEffectImpl
*
effect
)
static
void
free_effect
(
struct
d3dx_effect
*
effect
)
{
TRACE
(
"Free effect %p
\n
"
,
effect
);
...
...
@@ -2841,7 +2839,7 @@ static void d3dx9_set_material_parameter(enum MATERIAL_TYPE op, D3DMATERIAL9 *ma
}
}
static
HRESULT
d3dx_set_shader_const_state
(
struct
ID3DXEffectImpl
*
effect
,
enum
SHADER_CONSTANT_TYPE
op
,
UINT
index
,
static
HRESULT
d3dx_set_shader_const_state
(
struct
d3dx_effect
*
effect
,
enum
SHADER_CONSTANT_TYPE
op
,
UINT
index
,
struct
d3dx_parameter
*
param
,
void
*
value_ptr
)
{
static
const
struct
...
...
@@ -2940,10 +2938,10 @@ static HRESULT d3dx_set_shader_const_state(struct ID3DXEffectImpl *effect, enum
return
ret
;
}
static
HRESULT
d3dx9_apply_state
(
struct
ID3DXEffectImpl
*
effect
,
struct
d3dx_pass
*
pass
,
static
HRESULT
d3dx9_apply_state
(
struct
d3dx_effect
*
effect
,
struct
d3dx_pass
*
pass
,
struct
d3dx_state
*
state
,
unsigned
int
parent_index
,
BOOL
update_all
);
static
HRESULT
d3dx_set_shader_constants
(
struct
ID3DXEffectImpl
*
effect
,
struct
d3dx_pass
*
pass
,
static
HRESULT
d3dx_set_shader_constants
(
struct
d3dx_effect
*
effect
,
struct
d3dx_pass
*
pass
,
struct
d3dx_parameter
*
param
,
BOOL
vs
,
BOOL
update_all
)
{
HRESULT
hr
,
ret
;
...
...
@@ -2989,7 +2987,7 @@ static HRESULT d3dx_set_shader_constants(struct ID3DXEffectImpl *effect, struct
return
ret
;
}
static
HRESULT
d3dx9_apply_state
(
struct
ID3DXEffectImpl
*
effect
,
struct
d3dx_pass
*
pass
,
static
HRESULT
d3dx9_apply_state
(
struct
d3dx_effect
*
effect
,
struct
d3dx_pass
*
pass
,
struct
d3dx_state
*
state
,
unsigned
int
parent_index
,
BOOL
update_all
)
{
struct
d3dx_parameter
*
param
;
...
...
@@ -3125,7 +3123,7 @@ static HRESULT d3dx9_apply_state(struct ID3DXEffectImpl *effect, struct d3dx_pas
return
D3D_OK
;
}
static
HRESULT
d3dx9_apply_pass_states
(
struct
ID3DXEffectImpl
*
effect
,
struct
d3dx_pass
*
pass
,
BOOL
update_all
)
static
HRESULT
d3dx9_apply_pass_states
(
struct
d3dx_effect
*
effect
,
struct
d3dx_pass
*
pass
,
BOOL
update_all
)
{
unsigned
int
i
;
HRESULT
ret
;
...
...
@@ -6540,7 +6538,7 @@ static const char **parse_skip_constants_string(char *skip_constants_string, uns
static
HRESULT
d3dx9_base_effect_init
(
struct
d3dx9_base_effect
*
base
,
const
char
*
data
,
SIZE_T
data_size
,
const
D3D_SHADER_MACRO
*
defines
,
ID3DInclude
*
include
,
UINT
eflags
,
ID3DBlob
**
errors
,
struct
ID3DXEffectImpl
*
effect
,
struct
d3dx_effect_pool
*
pool
,
UINT
eflags
,
ID3DBlob
**
errors
,
struct
d3dx_effect
*
effect
,
struct
d3dx_effect_pool
*
pool
,
const
char
*
skip_constants_string
)
{
DWORD
tag
,
offset
;
...
...
@@ -6683,7 +6681,7 @@ static HRESULT d3dx9_base_effect_init(struct d3dx9_base_effect *base,
return
D3D_OK
;
}
static
HRESULT
d3dx9_effect_init
(
struct
ID3DXEffectImpl
*
effect
,
struct
IDirect3DDevice9
*
device
,
static
HRESULT
d3dx9_effect_init
(
struct
d3dx_effect
*
effect
,
struct
IDirect3DDevice9
*
device
,
const
char
*
data
,
SIZE_T
data_size
,
const
D3D_SHADER_MACRO
*
defines
,
ID3DInclude
*
include
,
UINT
eflags
,
ID3DBlob
**
error_messages
,
struct
ID3DXEffectPool
*
pool
,
const
char
*
skip_constants
)
{
...
...
@@ -6727,7 +6725,7 @@ HRESULT WINAPI D3DXCreateEffectEx(struct IDirect3DDevice9 *device, const void *s
const
D3DXMACRO
*
defines
,
struct
ID3DXInclude
*
include
,
const
char
*
skip_constants
,
DWORD
flags
,
struct
ID3DXEffectPool
*
pool
,
struct
ID3DXEffect
**
effect
,
struct
ID3DXBuffer
**
compilation_errors
)
{
struct
ID3DXEffectImpl
*
object
;
struct
d3dx_effect
*
object
;
HRESULT
hr
;
TRACE
(
"device %p, srcdata %p, srcdatalen %u, defines %p, include %p,"
...
...
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