From 5fe60e8bdbbf3c7d0661952829f78e5073bebc68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rico=20Sch=C3=BCller?= Date: Mon, 26 Oct 2009 18:39:11 +0100 Subject: [PATCH] d3d10: Add ID3D10EffectDepthStencilViewVariableVtbl. --- dlls/d3d10/effect.c | 228 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 228 insertions(+) diff --git a/dlls/d3d10/effect.c b/dlls/d3d10/effect.c index a24ded9fc9f..53ae561ddb9 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 ID3D10EffectStringVariableVtbl d3d10_effect_string_variable_vtbl; static const struct ID3D10EffectShaderResourceVariableVtbl d3d10_effect_shader_resource_variable_vtbl; static const struct ID3D10EffectRenderTargetViewVariableVtbl d3d10_effect_render_target_view_variable_vtbl; +static const struct ID3D10EffectDepthStencilViewVariableVtbl d3d10_effect_depth_stencil_view_variable_vtbl; 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; @@ -92,6 +93,9 @@ static struct d3d10_effect_variable null_shader_resource_variable = static struct d3d10_effect_variable null_render_target_view_variable = {(ID3D10EffectVariableVtbl *)&d3d10_effect_render_target_view_variable_vtbl, &null_local_buffer, NULL, NULL, NULL, 0, 0, 0, 0, &null_type, NULL, NULL, NULL}; +static struct d3d10_effect_variable null_depth_stencil_view_variable = + {(ID3D10EffectVariableVtbl *)&d3d10_effect_depth_stencil_view_variable_vtbl, &null_local_buffer, + NULL, NULL, NULL, 0, 0, 0, 0, &null_type, NULL, NULL, NULL}; static struct d3d10_effect_variable null_blend_variable = {(ID3D10EffectVariableVtbl *)&d3d10_effect_blend_variable_vtbl, &null_local_buffer, NULL, NULL, NULL, 0, 0, 0, 0, &null_type, NULL, NULL, NULL}; @@ -4335,6 +4339,230 @@ static const struct ID3D10EffectRenderTargetViewVariableVtbl d3d10_effect_render /* ID3D10EffectVariable methods */ +static BOOL STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_IsValid( + ID3D10EffectDepthStencilViewVariable *iface) +{ + TRACE("iface %p\n", iface); + + return (struct d3d10_effect_variable *)iface != &null_depth_stencil_view_variable; +} + +static struct ID3D10EffectType * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetType( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_GetType((ID3D10EffectVariable *)iface); +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetDesc( + ID3D10EffectDepthStencilViewVariable *iface, D3D10_EFFECT_VARIABLE_DESC *desc) +{ + return d3d10_effect_variable_GetDesc((ID3D10EffectVariable *)iface, desc); +} + +static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetAnnotationByIndex( + ID3D10EffectDepthStencilViewVariable *iface, UINT index) +{ + return d3d10_effect_variable_GetAnnotationByIndex((ID3D10EffectVariable *)iface, index); +} + +static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetAnnotationByName( + ID3D10EffectDepthStencilViewVariable *iface, LPCSTR name) +{ + return d3d10_effect_variable_GetAnnotationByName((ID3D10EffectVariable *)iface, name); +} + +static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetMemberByIndex( + ID3D10EffectDepthStencilViewVariable *iface, UINT index) +{ + return d3d10_effect_variable_GetMemberByIndex((ID3D10EffectVariable *)iface, index); +} + +static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetMemberByName( + ID3D10EffectDepthStencilViewVariable *iface, LPCSTR name) +{ + return d3d10_effect_variable_GetMemberByName((ID3D10EffectVariable *)iface, name); +} + +static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetMemberBySemantic( + ID3D10EffectDepthStencilViewVariable *iface, LPCSTR semantic) +{ + return d3d10_effect_variable_GetMemberBySemantic((ID3D10EffectVariable *)iface, semantic); +} + +static struct ID3D10EffectVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetElement( + ID3D10EffectDepthStencilViewVariable *iface, UINT index) +{ + return d3d10_effect_variable_GetElement((ID3D10EffectVariable *)iface, index); +} + +static struct ID3D10EffectConstantBuffer * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetParentConstantBuffer( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_GetParentConstantBuffer((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectScalarVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsScalar( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsScalar((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectVectorVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsVector( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsVector((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectMatrixVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsMatrix( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsMatrix((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectStringVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsString( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsString((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectShaderResourceVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsShaderResource( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsShaderResource((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectRenderTargetViewVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsRenderTargetView( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsRenderTargetView((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectDepthStencilViewVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsDepthStencilView( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsDepthStencilView((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectConstantBuffer * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsConstantBuffer( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsConstantBuffer((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectShaderVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsShader( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsShader((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectBlendVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsBlend( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsBlend((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectDepthStencilVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsDepthStencil( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsDepthStencil((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectRasterizerVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsRasterizer( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsRasterizer((ID3D10EffectVariable *)iface); +} + +static struct ID3D10EffectSamplerVariable * STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_AsSampler( + ID3D10EffectDepthStencilViewVariable *iface) +{ + return d3d10_effect_variable_AsSampler((ID3D10EffectVariable *)iface); +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_SetRawValue( + ID3D10EffectDepthStencilViewVariable *iface, void *data, UINT offset, UINT count) +{ + return d3d10_effect_variable_SetRawValue((ID3D10EffectVariable *)iface, data, offset, count); +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetRawValue( + ID3D10EffectDepthStencilViewVariable *iface, void *data, UINT offset, UINT count) +{ + return d3d10_effect_variable_GetRawValue((ID3D10EffectVariable *)iface, data, offset, count); +} + +/* ID3D10EffectDepthStencilViewVariable methods */ + +static HRESULT STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_SetDepthStencil( + ID3D10EffectDepthStencilViewVariable *iface, ID3D10DepthStencilView *view) +{ + FIXME("iface %p, view %p stub!\n", iface, view); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetDepthStencil( + ID3D10EffectDepthStencilViewVariable *iface, ID3D10DepthStencilView **view) +{ + FIXME("iface %p, view %p stub!\n", iface, view); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_SetDepthStencilArray( + ID3D10EffectDepthStencilViewVariable *iface, ID3D10DepthStencilView **views, UINT offset, UINT count) +{ + FIXME("iface %p, views %p, offset %u, count %u stub!\n", iface, views, offset, count); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE d3d10_effect_depth_stencil_view_variable_GetDepthStencilArray( + ID3D10EffectDepthStencilViewVariable *iface, ID3D10DepthStencilView **views, UINT offset, UINT count) +{ + FIXME("iface %p, views %p, offset %u, count %u stub!\n", iface, views, offset, count); + + return E_NOTIMPL; +} + + +static const struct ID3D10EffectDepthStencilViewVariableVtbl d3d10_effect_depth_stencil_view_variable_vtbl = +{ + /* ID3D10EffectVariable methods */ + d3d10_effect_depth_stencil_view_variable_IsValid, + d3d10_effect_depth_stencil_view_variable_GetType, + d3d10_effect_depth_stencil_view_variable_GetDesc, + d3d10_effect_depth_stencil_view_variable_GetAnnotationByIndex, + d3d10_effect_depth_stencil_view_variable_GetAnnotationByName, + d3d10_effect_depth_stencil_view_variable_GetMemberByIndex, + d3d10_effect_depth_stencil_view_variable_GetMemberByName, + d3d10_effect_depth_stencil_view_variable_GetMemberBySemantic, + d3d10_effect_depth_stencil_view_variable_GetElement, + d3d10_effect_depth_stencil_view_variable_GetParentConstantBuffer, + d3d10_effect_depth_stencil_view_variable_AsScalar, + d3d10_effect_depth_stencil_view_variable_AsVector, + d3d10_effect_depth_stencil_view_variable_AsMatrix, + d3d10_effect_depth_stencil_view_variable_AsString, + d3d10_effect_depth_stencil_view_variable_AsShaderResource, + d3d10_effect_depth_stencil_view_variable_AsRenderTargetView, + d3d10_effect_depth_stencil_view_variable_AsDepthStencilView, + d3d10_effect_depth_stencil_view_variable_AsConstantBuffer, + d3d10_effect_depth_stencil_view_variable_AsShader, + d3d10_effect_depth_stencil_view_variable_AsBlend, + d3d10_effect_depth_stencil_view_variable_AsDepthStencil, + d3d10_effect_depth_stencil_view_variable_AsRasterizer, + d3d10_effect_depth_stencil_view_variable_AsSampler, + d3d10_effect_depth_stencil_view_variable_SetRawValue, + d3d10_effect_depth_stencil_view_variable_GetRawValue, + /* ID3D10EffectDepthStencilViewVariable methods */ + d3d10_effect_depth_stencil_view_variable_SetDepthStencil, + d3d10_effect_depth_stencil_view_variable_GetDepthStencil, + d3d10_effect_depth_stencil_view_variable_SetDepthStencilArray, + d3d10_effect_depth_stencil_view_variable_GetDepthStencilArray, +}; + +/* ID3D10EffectVariable methods */ + static BOOL STDMETHODCALLTYPE d3d10_effect_blend_variable_IsValid(ID3D10EffectBlendVariable *iface) { TRACE("iface %p\n", iface);