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
d64eb469
Commit
d64eb469
authored
Apr 18, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
Apr 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement ID3DXBaseEffect::GetTechniqueDesc().
parent
4482ca41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
effect.c
dlls/d3dx9_36/effect.c
+28
-2
No files found.
dlls/d3dx9_36/effect.c
View file @
d64eb469
...
@@ -156,6 +156,21 @@ static inline D3DXHANDLE get_pass_handle(struct d3dx_pass *pass)
...
@@ -156,6 +156,21 @@ static inline D3DXHANDLE get_pass_handle(struct d3dx_pass *pass)
return
(
D3DXHANDLE
)
pass
;
return
(
D3DXHANDLE
)
pass
;
}
}
struct
d3dx_technique
*
is_valid_technique
(
struct
ID3DXBaseEffectImpl
*
base
,
D3DXHANDLE
technique
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
base
->
technique_count
;
++
i
)
{
if
(
base
->
technique_handles
[
i
]
==
technique
)
{
return
get_technique_struct
(
technique
);
}
}
return
NULL
;
}
static
void
free_parameter
(
D3DXHANDLE
handle
,
BOOL
element
,
BOOL
child
)
static
void
free_parameter
(
D3DXHANDLE
handle
,
BOOL
element
,
BOOL
child
)
{
{
unsigned
int
i
;
unsigned
int
i
;
...
@@ -394,10 +409,21 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetParameterDesc(ID3DXBaseEffect *ifac
...
@@ -394,10 +409,21 @@ static HRESULT WINAPI ID3DXBaseEffectImpl_GetParameterDesc(ID3DXBaseEffect *ifac
static
HRESULT
WINAPI
ID3DXBaseEffectImpl_GetTechniqueDesc
(
ID3DXBaseEffect
*
iface
,
D3DXHANDLE
technique
,
D3DXTECHNIQUE_DESC
*
desc
)
static
HRESULT
WINAPI
ID3DXBaseEffectImpl_GetTechniqueDesc
(
ID3DXBaseEffect
*
iface
,
D3DXHANDLE
technique
,
D3DXTECHNIQUE_DESC
*
desc
)
{
{
struct
ID3DXBaseEffectImpl
*
This
=
impl_from_ID3DXBaseEffect
(
iface
);
struct
ID3DXBaseEffectImpl
*
This
=
impl_from_ID3DXBaseEffect
(
iface
);
struct
d3dx_technique
*
tech
=
technique
?
is_valid_technique
(
This
,
technique
)
:
get_technique_struct
(
This
->
technique_handles
[
0
]);
FIXME
(
"iface %p, technique %p, desc %p stub
\n
"
,
This
,
technique
,
desc
);
TRACE
(
"iface %p, technique %p, desc %p
\n
"
,
This
,
technique
,
desc
);
return
E_NOTIMPL
;
if
(
!
desc
||
!
tech
)
{
WARN
(
"Invalid argument specified.
\n
"
);
return
D3DERR_INVALIDCALL
;
}
desc
->
Name
=
tech
->
name
;
desc
->
Passes
=
tech
->
pass_count
;
desc
->
Annotations
=
tech
->
annotation_count
;
return
D3D_OK
;
}
}
static
HRESULT
WINAPI
ID3DXBaseEffectImpl_GetPassDesc
(
ID3DXBaseEffect
*
iface
,
D3DXHANDLE
pass
,
D3DXPASS_DESC
*
desc
)
static
HRESULT
WINAPI
ID3DXBaseEffectImpl_GetPassDesc
(
ID3DXBaseEffect
*
iface
,
D3DXHANDLE
pass
,
D3DXPASS_DESC
*
desc
)
...
...
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