Rico Schüller : d3d10: Implement ID3D10EffectVariable: :GetAnnotationByName().
Alexandre Julliard
julliard at winehq.org
Thu Sep 10 09:08:54 CDT 2009
Module: wine
Branch: master
Commit: 96c2b578fe2c2667ffc7d92cb58a8151a6c9491c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=96c2b578fe2c2667ffc7d92cb58a8151a6c9491c
Author: Rico Schüller <kgbricola at web.de>
Date: Wed Sep 9 19:17:33 2009 +0200
d3d10: Implement ID3D10EffectVariable::GetAnnotationByName().
---
dlls/d3d10/effect.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c
index ba9c694..d0f24d4 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -1701,9 +1701,24 @@ static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_Get
static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_GetAnnotationByName(
ID3D10EffectVariable *iface, LPCSTR name)
{
- FIXME("iface %p, name %s stub!\n", iface, debugstr_a(name));
+ struct d3d10_effect_variable *This = (struct d3d10_effect_variable *)iface;
+ unsigned int i;
- return NULL;
+ TRACE("iface %p, name %s.\n", iface, debugstr_a(name));
+
+ for (i = 0; i < This->annotation_count; ++i)
+ {
+ struct d3d10_effect_variable *a = &This->annotations[i];
+ if (!strcmp(a->name, name))
+ {
+ TRACE("Returning annotation %p\n", a);
+ return (ID3D10EffectVariable *)a;
+ }
+ }
+
+ WARN("Invalid name specified\n");
+
+ return (ID3D10EffectVariable *)&null_variable;
}
static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_variable_GetMemberByIndex(
More information about the wine-cvs
mailing list