d3d10: Implement d3d10_effect_shader_variable_GetVertexShader().
This commit is contained in:
parent
a03910c903
commit
63b2022302
|
@ -5617,9 +5617,25 @@ static HRESULT STDMETHODCALLTYPE d3d10_effect_shader_variable_GetShaderDesc(
|
|||
static HRESULT STDMETHODCALLTYPE d3d10_effect_shader_variable_GetVertexShader(
|
||||
ID3D10EffectShaderVariable *iface, UINT index, ID3D10VertexShader **shader)
|
||||
{
|
||||
FIXME("iface %p, index %u, shader %p stub!\n", iface, index, shader);
|
||||
struct d3d10_effect_variable *v = impl_from_ID3D10EffectVariable((ID3D10EffectVariable *)iface);
|
||||
struct d3d10_effect_shader_variable *s;
|
||||
|
||||
return E_NOTIMPL;
|
||||
TRACE("iface %p, index %u, shader %p.\n", iface, index, shader);
|
||||
|
||||
if (v->type->element_count)
|
||||
v = impl_from_ID3D10EffectVariable(iface->lpVtbl->GetElement(iface, index));
|
||||
|
||||
if (v->type->basetype != D3D10_SVT_VERTEXSHADER)
|
||||
{
|
||||
WARN("Shader is not a vertex shader.\n");
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
s = v->data;
|
||||
if ((*shader = s->shader.vs))
|
||||
ID3D10VertexShader_AddRef(*shader);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE d3d10_effect_shader_variable_GetGeometryShader(
|
||||
|
|
Loading…
Reference in New Issue