Rico Schüller : d3d10: Add ID3D10EffectSamplerVariableVtbl.

Alexandre Julliard julliard at winehq.org
Tue Oct 27 09:46:32 CDT 2009


Module: wine
Branch: master
Commit: 48563347856c51ee10d0978158346a104e542803
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=48563347856c51ee10d0978158346a104e542803

Author: Rico Schüller <kgbricola at web.de>
Date:   Mon Oct 26 18:38:53 2009 +0100

d3d10: Add ID3D10EffectSamplerVariableVtbl.

---

 dlls/d3d10/effect.c |  209 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 209 insertions(+), 0 deletions(-)

diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c
index 3fef775..c7c53c6 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -55,6 +55,7 @@ static const struct ID3D10EffectMatrixVariableVtbl d3d10_effect_matrix_variable_
 static const struct ID3D10EffectBlendVariableVtbl d3d10_effect_blend_variable_vtbl;
 static const struct ID3D10EffectDepthStencilVariableVtbl d3d10_effect_depth_stencil_variable_vtbl;
 static const struct ID3D10EffectRasterizerVariableVtbl d3d10_effect_rasterizer_variable_vtbl;
+static const struct ID3D10EffectSamplerVariableVtbl d3d10_effect_sampler_variable_vtbl;
 static const struct ID3D10EffectTypeVtbl d3d10_effect_type_vtbl;
 
 /* null objects - needed for invalid calls */
@@ -88,6 +89,9 @@ static struct d3d10_effect_variable null_depth_stencil_variable =
 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_type *get_fx10_type(struct d3d10_effect *effect, const char *data, DWORD offset);
 
@@ -4280,6 +4284,211 @@ static const struct ID3D10EffectRasterizerVariableVtbl d3d10_effect_rasterizer_v
     d3d10_effect_rasterizer_variable_GetBackingStore,
 };
 
+/* ID3D10EffectVariable methods */
+
+static BOOL STDMETHODCALLTYPE d3d10_effect_sampler_variable_IsValid(ID3D10EffectSamplerVariable *iface)
+{
+    TRACE("iface %p\n", iface);
+
+    return (struct d3d10_effect_variable *)iface != &null_sampler_variable;
+}
+
+static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetType(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_GetType((ID3D10EffectVariable *)iface);
+}
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetDesc(ID3D10EffectSamplerVariable *iface,
+        D3D10_EFFECT_VARIABLE_DESC *desc)
+{
+    return d3d10_effect_variable_GetDesc((ID3D10EffectVariable *)iface, desc);
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetAnnotationByIndex(
+        ID3D10EffectSamplerVariable *iface, UINT index)
+{
+    return d3d10_effect_variable_GetAnnotationByIndex((ID3D10EffectVariable *)iface, index);
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetAnnotationByName(
+        ID3D10EffectSamplerVariable *iface, LPCSTR name)
+{
+    return d3d10_effect_variable_GetAnnotationByName((ID3D10EffectVariable *)iface, name);
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetMemberByIndex(
+        ID3D10EffectSamplerVariable *iface, UINT index)
+{
+    return d3d10_effect_variable_GetMemberByIndex((ID3D10EffectVariable *)iface, index);
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetMemberByName(
+        ID3D10EffectSamplerVariable *iface, LPCSTR name)
+{
+    return d3d10_effect_variable_GetMemberByName((ID3D10EffectVariable *)iface, name);
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetMemberBySemantic(
+        ID3D10EffectSamplerVariable *iface, LPCSTR semantic)
+{
+    return d3d10_effect_variable_GetMemberBySemantic((ID3D10EffectVariable *)iface, semantic);
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetElement(
+        ID3D10EffectSamplerVariable *iface, UINT index)
+{
+    return d3d10_effect_variable_GetElement((ID3D10EffectVariable *)iface, index);
+}
+
+static struct ID3D10EffectConstantBuffer * STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetParentConstantBuffer(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_GetParentConstantBuffer((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectScalarVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsScalar(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsScalar((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectVectorVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsVector(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsVector((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectMatrixVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsMatrix(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsMatrix((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectStringVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsString(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsString((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectShaderResourceVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsShaderResource(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsShaderResource((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectRenderTargetViewVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsRenderTargetView(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsRenderTargetView((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectDepthStencilViewVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsDepthStencilView(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsDepthStencilView((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectConstantBuffer * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsConstantBuffer(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsConstantBuffer((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectShaderVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsShader(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsShader((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectBlendVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsBlend(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsBlend((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectDepthStencilVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsDepthStencil(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsDepthStencil((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectRasterizerVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsRasterizer(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsRasterizer((ID3D10EffectVariable *)iface);
+}
+
+static struct ID3D10EffectSamplerVariable * STDMETHODCALLTYPE d3d10_effect_sampler_variable_AsSampler(
+        ID3D10EffectSamplerVariable *iface)
+{
+    return d3d10_effect_variable_AsSampler((ID3D10EffectVariable *)iface);
+}
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_sampler_variable_SetRawValue(ID3D10EffectSamplerVariable *iface,
+        void *data, UINT offset, UINT count)
+{
+    return d3d10_effect_variable_SetRawValue((ID3D10EffectVariable *)iface, data, offset, count);
+}
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetRawValue(ID3D10EffectSamplerVariable *iface,
+        void *data, UINT offset, UINT count)
+{
+    return d3d10_effect_variable_GetRawValue((ID3D10EffectVariable *)iface, data, offset, count);
+}
+
+/* ID3D10EffectSamplerVariable methods */
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetSampler(ID3D10EffectSamplerVariable *iface,
+        UINT index, ID3D10SamplerState **sampler)
+{
+    FIXME("iface %p, index %u, sampler %p stub!\n", iface, index, sampler);
+
+    return E_NOTIMPL;
+}
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_sampler_variable_GetBackingStore(ID3D10EffectSamplerVariable *iface,
+        UINT index, D3D10_SAMPLER_DESC *desc)
+{
+    FIXME("iface %p, index %u, desc %p stub!\n", iface, index, desc);
+
+    return E_NOTIMPL;
+}
+
+
+static const struct ID3D10EffectSamplerVariableVtbl d3d10_effect_sampler_variable_vtbl =
+{
+    /* ID3D10EffectVariable methods */
+    d3d10_effect_sampler_variable_IsValid,
+    d3d10_effect_sampler_variable_GetType,
+    d3d10_effect_sampler_variable_GetDesc,
+    d3d10_effect_sampler_variable_GetAnnotationByIndex,
+    d3d10_effect_sampler_variable_GetAnnotationByName,
+    d3d10_effect_sampler_variable_GetMemberByIndex,
+    d3d10_effect_sampler_variable_GetMemberByName,
+    d3d10_effect_sampler_variable_GetMemberBySemantic,
+    d3d10_effect_sampler_variable_GetElement,
+    d3d10_effect_sampler_variable_GetParentConstantBuffer,
+    d3d10_effect_sampler_variable_AsScalar,
+    d3d10_effect_sampler_variable_AsVector,
+    d3d10_effect_sampler_variable_AsMatrix,
+    d3d10_effect_sampler_variable_AsString,
+    d3d10_effect_sampler_variable_AsShaderResource,
+    d3d10_effect_sampler_variable_AsRenderTargetView,
+    d3d10_effect_sampler_variable_AsDepthStencilView,
+    d3d10_effect_sampler_variable_AsConstantBuffer,
+    d3d10_effect_sampler_variable_AsShader,
+    d3d10_effect_sampler_variable_AsBlend,
+    d3d10_effect_sampler_variable_AsDepthStencil,
+    d3d10_effect_sampler_variable_AsRasterizer,
+    d3d10_effect_sampler_variable_AsSampler,
+    d3d10_effect_sampler_variable_SetRawValue,
+    d3d10_effect_sampler_variable_GetRawValue,
+    /* ID3D10EffectSamplerVariable methods */
+    d3d10_effect_sampler_variable_GetSampler,
+    d3d10_effect_sampler_variable_GetBackingStore,
+};
+
 /* ID3D10EffectType methods */
 
 static BOOL STDMETHODCALLTYPE d3d10_effect_type_IsValid(ID3D10EffectType *iface)




More information about the wine-cvs mailing list