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
0682453d
Commit
0682453d
authored
Jan 10, 2010
by
Rico Schüller
Committed by
Alexandre Julliard
Jan 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Reorder struct d3d10_effect_variable to make the initialisation nicer.
parent
73a955ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
49 deletions
+33
-49
d3d10_private.h
dlls/d3d10/d3d10_private.h
+1
-1
effect.c
dlls/d3d10/effect.c
+32
-48
No files found.
dlls/d3d10/d3d10_private.h
View file @
0682453d
...
...
@@ -102,6 +102,7 @@ struct d3d10_effect_variable
const
struct
ID3D10EffectVariableVtbl
*
vtbl
;
struct
d3d10_effect_variable
*
buffer
;
struct
d3d10_effect_type
*
type
;
struct
d3d10_effect
*
effect
;
char
*
name
;
...
...
@@ -110,7 +111,6 @@ struct d3d10_effect_variable
DWORD
annotation_count
;
DWORD
flag
;
DWORD
data_size
;
struct
d3d10_effect_type
*
type
;
struct
d3d10_effect_variable
*
elements
;
struct
d3d10_effect_variable
*
members
;
struct
d3d10_effect_variable
*
annotations
;
...
...
dlls/d3d10/effect.c
View file @
0682453d
/*
* Copyright 2009 Henri Verbeet for CodeWeavers
* Copyright 2009 Rico Schüller
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -64,54 +65,37 @@ static const struct ID3D10EffectSamplerVariableVtbl d3d10_effect_sampler_variabl
static
const
struct
ID3D10EffectTypeVtbl
d3d10_effect_type_vtbl
;
/* null objects - needed for invalid calls */
static
struct
d3d10_effect_technique
null_technique
=
{
&
d3d10_effect_technique_vtbl
,
NULL
,
NULL
,
0
,
0
,
NULL
,
NULL
};
static
struct
d3d10_effect_pass
null_pass
=
{
&
d3d10_effect_pass_vtbl
,
NULL
,
NULL
,
0
,
0
,
0
,
NULL
,
NULL
};
static
struct
d3d10_effect_type
null_type
=
{
&
d3d10_effect_type_vtbl
,
0
,
{
NULL
,
NULL
,
0
},
NULL
,
NULL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_local_buffer
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_constant_buffer_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_variable
=
{
&
d3d10_effect_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_scalar_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_scalar_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_vector_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_vector_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_matrix_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_matrix_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_string_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_string_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_shader_resource_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_shader_resource_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_render_target_view_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_render_target_view_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_depth_stencil_view_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_depth_stencil_view_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_shader_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_shader_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_blend_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_blend_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_depth_stencil_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_depth_stencil_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_rasterizer_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_rasterizer_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_variable
null_sampler_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_sampler_variable_vtbl
,
&
null_local_buffer
,
NULL
,
NULL
,
NULL
,
0
,
0
,
0
,
0
,
&
null_type
,
NULL
,
NULL
,
NULL
};
static
struct
d3d10_effect_technique
null_technique
=
{
&
d3d10_effect_technique_vtbl
};
static
struct
d3d10_effect_pass
null_pass
=
{
&
d3d10_effect_pass_vtbl
};
static
struct
d3d10_effect_type
null_type
=
{
&
d3d10_effect_type_vtbl
};
static
struct
d3d10_effect_variable
null_local_buffer
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_constant_buffer_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_variable
=
{
&
d3d10_effect_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_scalar_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_scalar_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_vector_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_vector_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_matrix_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_matrix_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_string_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_string_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_shader_resource_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_shader_resource_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_render_target_view_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_render_target_view_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_depth_stencil_view_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_depth_stencil_view_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_shader_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_shader_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_blend_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_blend_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_depth_stencil_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_depth_stencil_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_rasterizer_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_rasterizer_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_variable
null_sampler_variable
=
{(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_sampler_variable_vtbl
,
&
null_local_buffer
,
&
null_type
};
static
struct
d3d10_effect_type
*
get_fx10_type
(
struct
d3d10_effect
*
effect
,
const
char
*
data
,
DWORD
offset
);
...
...
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