Rico Schüller : d3d10: Add ID3D10EffectConstantBufferVtbl.
Alexandre Julliard
julliard at winehq.org
Fri Aug 21 09:32:19 CDT 2009
Module: wine
Branch: master
Commit: 91c00c175b7f60df18aec842305baa2705544fdd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=91c00c175b7f60df18aec842305baa2705544fdd
Author: Rico Schüller <kgbricola at web.de>
Date: Thu Aug 20 19:05:35 2009 +0200
d3d10: Add ID3D10EffectConstantBufferVtbl.
---
dlls/d3d10/d3d10_private.h | 2 +
dlls/d3d10/effect.c | 268 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 270 insertions(+), 0 deletions(-)
diff --git a/dlls/d3d10/d3d10_private.h b/dlls/d3d10/d3d10_private.h
index 1624c50..535a82d 100644
--- a/dlls/d3d10/d3d10_private.h
+++ b/dlls/d3d10/d3d10_private.h
@@ -70,6 +70,8 @@ struct d3d10_effect_variable
struct d3d10_effect_local_buffer
{
+ const struct ID3D10EffectConstantBufferVtbl *vtbl;
+
char *name;
DWORD data_size;
DWORD variable_count;
diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c
index 513dad9..ed849bb 100644
--- a/dlls/d3d10/effect.c
+++ b/dlls/d3d10/effect.c
@@ -34,6 +34,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d10);
static const struct ID3D10EffectTechniqueVtbl d3d10_effect_technique_vtbl;
static const struct ID3D10EffectPassVtbl d3d10_effect_pass_vtbl;
static const struct ID3D10EffectVariableVtbl d3d10_effect_variable_vtbl;
+static const struct ID3D10EffectConstantBufferVtbl d3d10_effect_constant_buffer_vtbl;
static inline void read_dword(const char **ptr, DWORD *d)
{
@@ -514,6 +515,7 @@ static HRESULT parse_fx10_body(struct d3d10_effect *e, const char *data, DWORD d
for (i = 0; i < e->local_buffer_count; ++i)
{
struct d3d10_effect_local_buffer *l = &e->local_buffers[i];
+ l->vtbl = &d3d10_effect_constant_buffer_vtbl;
hr = parse_fx10_local_buffer(l, &ptr, data);
if (FAILED(hr)) return hr;
@@ -1406,3 +1408,269 @@ static const struct ID3D10EffectVariableVtbl d3d10_effect_variable_vtbl =
d3d10_effect_variable_SetRawValue,
d3d10_effect_variable_GetRawValue,
};
+
+/* ID3D10EffectVariable methods */
+static BOOL STDMETHODCALLTYPE d3d10_effect_constant_buffer_IsValid(ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return FALSE;
+}
+
+static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetType(ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetDesc(ID3D10EffectConstantBuffer *iface,
+ D3D10_EFFECT_VARIABLE_DESC *desc)
+{
+ FIXME("iface %p, desc %p stub!\n", iface, desc);
+
+ return E_NOTIMPL;
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetAnnotationByIndex(
+ ID3D10EffectConstantBuffer *iface, UINT index)
+{
+ FIXME("iface %p, index %u stub!\n", iface, index);
+
+ return NULL;
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetAnnotationByName(
+ ID3D10EffectConstantBuffer *iface, LPCSTR name)
+{
+ FIXME("iface %p, name \"%s\" stub!\n", iface, name);
+
+ return NULL;
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetMemberByIndex(
+ ID3D10EffectConstantBuffer *iface, UINT index)
+{
+ FIXME("iface %p, index %u stub!\n", iface, index);
+
+ return NULL;
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetMemberByName(
+ ID3D10EffectConstantBuffer *iface, LPCSTR name)
+{
+ FIXME("iface %p, name \"%s\" stub!\n", iface, name);
+
+ return NULL;
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetMemberBySemantic(
+ ID3D10EffectConstantBuffer *iface, LPCSTR semantic)
+{
+ FIXME("iface %p, semantic \"%s\" stub!\n", iface, semantic);
+
+ return NULL;
+}
+
+static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetElement(
+ ID3D10EffectConstantBuffer *iface, UINT index)
+{
+ FIXME("iface %p, index %u stub!\n", iface, index);
+
+ return NULL;
+}
+
+static struct ID3D10EffectConstantBuffer * STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetParentConstantBuffer(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectScalarVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsScalar(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectVectorVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsVector(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectMatrixVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsMatrix(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectStringVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsString(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectShaderResourceVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsShaderResource(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectRenderTargetViewVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsRenderTargetView(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectDepthStencilViewVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsDepthStencilView(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectConstantBuffer * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsConstantBuffer(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectShaderVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsShader(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectBlendVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsBlend(ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectDepthStencilVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsDepthStencil(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectRasterizerVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsRasterizer(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static struct ID3D10EffectSamplerVariable * STDMETHODCALLTYPE d3d10_effect_constant_buffer_AsSampler(
+ ID3D10EffectConstantBuffer *iface)
+{
+ FIXME("iface %p stub!\n", iface);
+
+ return NULL;
+}
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_constant_buffer_SetRawValue(ID3D10EffectConstantBuffer *iface,
+ void *data, UINT offset, UINT count)
+{
+ FIXME("iface %p, data %p, offset %u, count %u stub!\n", iface, data, offset, count);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetRawValue(ID3D10EffectConstantBuffer *iface,
+ void *data, UINT offset, UINT count)
+{
+ FIXME("iface %p, data %p, offset %u, count %u stub!\n", iface, data, offset, count);
+
+ return E_NOTIMPL;
+}
+
+/* ID3D10EffectConstantBuffer methods */
+static HRESULT STDMETHODCALLTYPE d3d10_effect_constant_buffer_SetConstantBuffer(ID3D10EffectConstantBuffer *iface,
+ ID3D10Buffer *buffer)
+{
+ FIXME("iface %p, buffer %p stub!\n", iface, buffer);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetConstantBuffer(ID3D10EffectConstantBuffer *iface,
+ ID3D10Buffer **buffer)
+{
+ FIXME("iface %p, buffer %p stub!\n", iface, buffer);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_constant_buffer_SetTextureBuffer(ID3D10EffectConstantBuffer *iface,
+ ID3D10ShaderResourceView *view)
+{
+ FIXME("iface %p, view %p stub!\n", iface, view);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT STDMETHODCALLTYPE d3d10_effect_constant_buffer_GetTextureBuffer(ID3D10EffectConstantBuffer *iface,
+ ID3D10ShaderResourceView **view)
+{
+ FIXME("iface %p, view %p stub!\n", iface, view);
+
+ return E_NOTIMPL;
+}
+
+static const struct ID3D10EffectConstantBufferVtbl d3d10_effect_constant_buffer_vtbl =
+{
+ /* ID3D10EffectVariable methods */
+ d3d10_effect_constant_buffer_IsValid,
+ d3d10_effect_constant_buffer_GetType,
+ d3d10_effect_constant_buffer_GetDesc,
+ d3d10_effect_constant_buffer_GetAnnotationByIndex,
+ d3d10_effect_constant_buffer_GetAnnotationByName,
+ d3d10_effect_constant_buffer_GetMemberByIndex,
+ d3d10_effect_constant_buffer_GetMemberByName,
+ d3d10_effect_constant_buffer_GetMemberBySemantic,
+ d3d10_effect_constant_buffer_GetElement,
+ d3d10_effect_constant_buffer_GetParentConstantBuffer,
+ d3d10_effect_constant_buffer_AsScalar,
+ d3d10_effect_constant_buffer_AsVector,
+ d3d10_effect_constant_buffer_AsMatrix,
+ d3d10_effect_constant_buffer_AsString,
+ d3d10_effect_constant_buffer_AsShaderResource,
+ d3d10_effect_constant_buffer_AsRenderTargetView,
+ d3d10_effect_constant_buffer_AsDepthStencilView,
+ d3d10_effect_constant_buffer_AsConstantBuffer,
+ d3d10_effect_constant_buffer_AsShader,
+ d3d10_effect_constant_buffer_AsBlend,
+ d3d10_effect_constant_buffer_AsDepthStencil,
+ d3d10_effect_constant_buffer_AsRasterizer,
+ d3d10_effect_constant_buffer_AsSampler,
+ d3d10_effect_constant_buffer_SetRawValue,
+ d3d10_effect_constant_buffer_GetRawValue,
+ /* ID3D10EffectConstantBuffer methods */
+ d3d10_effect_constant_buffer_SetConstantBuffer,
+ d3d10_effect_constant_buffer_GetConstantBuffer,
+ d3d10_effect_constant_buffer_SetTextureBuffer,
+ d3d10_effect_constant_buffer_GetTextureBuffer,
+};
More information about the wine-cvs
mailing list