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
ff5991ce
Commit
ff5991ce
authored
Sep 10, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10: Move effect variable vtable initialization to parse_fx10_variable_head().
parent
b0c46208
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
25 deletions
+21
-25
effect.c
dlls/d3d10/effect.c
+21
-25
No files found.
dlls/d3d10/effect.c
View file @
ff5991ce
...
...
@@ -449,6 +449,27 @@ static HRESULT parse_fx10_variable_head(struct d3d10_effect_variable *v, const c
return
E_FAIL
;
}
switch
(
v
->
type
->
type_class
)
{
case
D3D10_SVC_SCALAR
:
v
->
vtbl
=
(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_scalar_variable_vtbl
;
break
;
case
D3D10_SVC_VECTOR
:
v
->
vtbl
=
(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_vector_variable_vtbl
;
break
;
case
D3D10_SVC_MATRIX_ROWS
:
case
D3D10_SVC_MATRIX_COLUMNS
:
v
->
vtbl
=
(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_matrix_variable_vtbl
;
break
;
default:
FIXME
(
"Unhandled type class %s.
\n
"
,
debug_d3d10_shader_variable_class
(
v
->
type
->
type_class
));
v
->
vtbl
=
&
d3d10_effect_variable_vtbl
;
break
;
}
return
S_OK
;
}
...
...
@@ -554,7 +575,6 @@ static HRESULT parse_fx10_pass(struct d3d10_effect_pass *p, const char **ptr, co
{
struct
d3d10_effect_variable
*
a
=
&
p
->
annotations
[
i
];
a
->
vtbl
=
&
d3d10_effect_variable_vtbl
;
a
->
effect
=
p
->
technique
->
effect
;
hr
=
parse_fx10_annotation
(
a
,
ptr
,
data
);
...
...
@@ -615,7 +635,6 @@ static HRESULT parse_fx10_technique(struct d3d10_effect_technique *t, const char
{
struct
d3d10_effect_variable
*
a
=
&
t
->
annotations
[
i
];
a
->
vtbl
=
&
d3d10_effect_variable_vtbl
;
a
->
effect
=
t
->
effect
;
hr
=
parse_fx10_annotation
(
a
,
ptr
,
data
);
...
...
@@ -651,27 +670,6 @@ static HRESULT parse_fx10_variable(struct d3d10_effect_variable *v, const char *
hr
=
parse_fx10_variable_head
(
v
,
ptr
,
data
);
if
(
FAILED
(
hr
))
return
hr
;
switch
(
v
->
type
->
type_class
)
{
case
D3D10_SVC_SCALAR
:
v
->
vtbl
=
(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_scalar_variable_vtbl
;
break
;
case
D3D10_SVC_VECTOR
:
v
->
vtbl
=
(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_vector_variable_vtbl
;
break
;
case
D3D10_SVC_MATRIX_ROWS
:
case
D3D10_SVC_MATRIX_COLUMNS
:
v
->
vtbl
=
(
ID3D10EffectVariableVtbl
*
)
&
d3d10_effect_matrix_variable_vtbl
;
break
;
default:
FIXME
(
"Unhandled type class %s.
\n
"
,
debug_d3d10_shader_variable_class
(
v
->
type
->
type_class
));
v
->
vtbl
=
&
d3d10_effect_variable_vtbl
;
break
;
}
skip_dword_unknown
(
ptr
,
1
);
read_dword
(
ptr
,
&
v
->
buffer_offset
);
...
...
@@ -697,7 +695,6 @@ static HRESULT parse_fx10_variable(struct d3d10_effect_variable *v, const char *
struct
d3d10_effect_variable
*
a
=
&
v
->
annotations
[
i
];
HRESULT
hr
;
a
->
vtbl
=
&
d3d10_effect_variable_vtbl
;
a
->
effect
=
v
->
effect
;
hr
=
parse_fx10_annotation
(
a
,
ptr
,
data
);
...
...
@@ -748,7 +745,6 @@ static HRESULT parse_fx10_local_buffer(struct d3d10_effect_local_buffer *l, cons
{
struct
d3d10_effect_variable
*
a
=
&
l
->
annotations
[
i
];
a
->
vtbl
=
&
d3d10_effect_variable_vtbl
;
a
->
effect
=
l
->
effect
;
hr
=
parse_fx10_annotation
(
a
,
ptr
,
data
);
...
...
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