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
c3342644
Commit
c3342644
authored
Mar 22, 2018
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement FindNextValidTechnique().
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ed746aee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
4 deletions
+36
-4
effect.c
dlls/d3dx9_36/effect.c
+36
-4
No files found.
dlls/d3dx9_36/effect.c
View file @
c3342644
...
...
@@ -4038,13 +4038,45 @@ done:
return
ret
;
}
static
HRESULT
WINAPI
ID3DXEffectImpl_FindNextValidTechnique
(
ID3DXEffect
*
iface
,
D3DXHANDLE
technique
,
D3DXHANDLE
*
next_technique
)
static
HRESULT
WINAPI
ID3DXEffectImpl_FindNextValidTechnique
(
ID3DXEffect
*
iface
,
D3DXHANDLE
technique
,
D3DXHANDLE
*
next_technique
)
{
struct
ID3DXEffectImpl
*
This
=
impl_from_ID3DXEffect
(
iface
);
struct
ID3DXEffectImpl
*
effect
=
impl_from_ID3DXEffect
(
iface
);
struct
d3dx9_base_effect
*
base
=
&
effect
->
base_effect
;
struct
d3dx_technique
*
prev_tech
,
*
tech
;
unsigned
int
i
;
FIXME
(
"(%p)->(%p, %p): stub
\n
"
,
This
,
technique
,
next_technique
);
TRACE
(
"iface %p, technique %p, next_technique %p.
\n
"
,
iface
,
technique
,
next_technique
);
return
E_NOTIMPL
;
if
(
technique
)
{
if
(
!
(
prev_tech
=
get_valid_technique
(
base
,
technique
)))
return
D3DERR_INVALIDCALL
;
for
(
i
=
0
;
i
<
base
->
technique_count
;
++
i
)
{
tech
=
&
base
->
techniques
[
i
];
if
(
tech
==
prev_tech
)
break
;
}
}
else
{
i
=
0
;
}
for
(
++
i
;
i
<
base
->
technique_count
;
++
i
)
{
tech
=
&
base
->
techniques
[
i
];
if
(
SUCCEEDED
(
ID3DXEffectImpl_ValidateTechnique
(
iface
,
get_technique_handle
(
tech
))))
{
*
next_technique
=
get_technique_handle
(
tech
);
return
D3D_OK
;
}
}
*
next_technique
=
get_technique_handle
(
&
base
->
techniques
[
0
]);
return
S_FALSE
;
}
static
BOOL
walk_parameter_dep
(
struct
d3dx_parameter
*
param
,
walk_parameter_dep_func
param_func
,
...
...
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