mirror of
https://github.com/reactos/reactos.git
synced 2025-07-15 22:44:05 +00:00
[WINESYNC] d3dx9: Get rid of struct d3dx9_base_effect.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> wine commit id 3b951b77f87ed9102fc7a2ccb0807b5592990147 by Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
parent
b2df33e579
commit
13aa089045
2 changed files with 4 additions and 13 deletions
|
@ -152,20 +152,11 @@ struct d3dx_technique
|
||||||
struct IDirect3DStateBlock9 *saved_state;
|
struct IDirect3DStateBlock9 *saved_state;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct d3dx9_base_effect
|
|
||||||
{
|
|
||||||
struct d3dx_effect *effect;
|
|
||||||
|
|
||||||
|
|
||||||
ULONG64 version_counter;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct d3dx_effect
|
struct d3dx_effect
|
||||||
{
|
{
|
||||||
ID3DXEffect ID3DXEffect_iface;
|
ID3DXEffect ID3DXEffect_iface;
|
||||||
LONG ref;
|
LONG ref;
|
||||||
|
|
||||||
struct d3dx9_base_effect base_effect;
|
|
||||||
unsigned int parameter_count;
|
unsigned int parameter_count;
|
||||||
unsigned int technique_count;
|
unsigned int technique_count;
|
||||||
unsigned int object_count;
|
unsigned int object_count;
|
||||||
|
@ -173,6 +164,7 @@ struct d3dx_effect
|
||||||
struct d3dx_technique *techniques;
|
struct d3dx_technique *techniques;
|
||||||
struct d3dx_object *objects;
|
struct d3dx_object *objects;
|
||||||
DWORD flags;
|
DWORD flags;
|
||||||
|
|
||||||
struct wine_rb_tree param_tree;
|
struct wine_rb_tree param_tree;
|
||||||
char *full_name_tmp;
|
char *full_name_tmp;
|
||||||
unsigned int full_name_tmp_size;
|
unsigned int full_name_tmp_size;
|
||||||
|
@ -184,6 +176,7 @@ struct d3dx_effect
|
||||||
struct d3dx_pass *active_pass;
|
struct d3dx_pass *active_pass;
|
||||||
BOOL started;
|
BOOL started;
|
||||||
DWORD begin_flags;
|
DWORD begin_flags;
|
||||||
|
ULONG64 version_counter;
|
||||||
|
|
||||||
D3DLIGHT9 current_light[8];
|
D3DLIGHT9 current_light[8];
|
||||||
unsigned int light_updated;
|
unsigned int light_updated;
|
||||||
|
@ -1130,7 +1123,7 @@ static BOOL walk_parameter_tree(struct d3dx_parameter *param, walk_parameter_dep
|
||||||
|
|
||||||
static ULONG64 *get_version_counter_ptr(struct d3dx_effect *effect)
|
static ULONG64 *get_version_counter_ptr(struct d3dx_effect *effect)
|
||||||
{
|
{
|
||||||
return effect->pool ? &effect->pool->version_counter : &effect->base_effect.version_counter;
|
return effect->pool ? &effect->pool->version_counter : &effect->version_counter;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG64 next_effect_update_version(struct d3dx_effect *effect)
|
static ULONG64 next_effect_update_version(struct d3dx_effect *effect)
|
||||||
|
@ -6156,7 +6149,6 @@ static HRESULT d3dx9_effect_init(struct d3dx_effect *effect, struct IDirect3DDev
|
||||||
#else
|
#else
|
||||||
UINT compile_flags = 0;
|
UINT compile_flags = 0;
|
||||||
#endif
|
#endif
|
||||||
struct d3dx9_base_effect *base = &effect->base_effect;
|
|
||||||
ID3DBlob *bytecode = NULL, *temp_errors = NULL;
|
ID3DBlob *bytecode = NULL, *temp_errors = NULL;
|
||||||
unsigned int skip_constants_count = 0;
|
unsigned int skip_constants_count = 0;
|
||||||
char *skip_constants_buffer = NULL;
|
char *skip_constants_buffer = NULL;
|
||||||
|
@ -6183,7 +6175,6 @@ static HRESULT d3dx9_effect_init(struct d3dx_effect *effect, struct IDirect3DDev
|
||||||
IDirect3DDevice9_AddRef(device);
|
IDirect3DDevice9_AddRef(device);
|
||||||
effect->device = device;
|
effect->device = device;
|
||||||
|
|
||||||
base->effect = effect;
|
|
||||||
effect->flags = eflags;
|
effect->flags = eflags;
|
||||||
|
|
||||||
read_dword(&ptr, &tag);
|
read_dword(&ptr, &tag);
|
||||||
|
|
|
@ -15,4 +15,4 @@ files: {include/d3dx9.h: sdk/include/dxsdk/d3dx9.h, include/d3dx9anim.h: sdk/inc
|
||||||
include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h,
|
include/d3dx9mesh.h: sdk/include/dxsdk/d3dx9mesh.h, include/d3dx9of.h: sdk/include/dxsdk/d3dx9of.h,
|
||||||
include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
|
include/d3dx9shader.h: sdk/include/dxsdk/d3dx9shader.h, include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h,
|
||||||
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h}
|
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h, include/d3dx9xof.h: sdk/include/dxsdk/d3dx9xof.h}
|
||||||
tags: {wine: 7f16670edc3ed5c8ab5bdd88e88a00f8ba1853dc}
|
tags: {wine: 3b951b77f87ed9102fc7a2ccb0807b5592990147}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue