d3d10core: Implement d3d10_device_PSGetShader().

This commit is contained in:
Henri Verbeet 2012-11-12 21:51:01 +01:00 committed by Alexandre Julliard
parent 5dc94d04a5
commit d2fa9a75b2
1 changed files with 15 additions and 1 deletions

View File

@ -465,7 +465,21 @@ static void STDMETHODCALLTYPE d3d10_device_PSGetShaderResources(ID3D10Device *if
static void STDMETHODCALLTYPE d3d10_device_PSGetShader(ID3D10Device *iface, ID3D10PixelShader **shader)
{
FIXME("iface %p, shader %p stub!\n", iface, shader);
struct d3d10_device *device = impl_from_ID3D10Device(iface);
struct d3d10_pixel_shader *shader_impl;
struct wined3d_shader *wined3d_shader;
TRACE("iface %p, shader %p.\n", iface, shader);
if (!(wined3d_shader = wined3d_device_get_pixel_shader(device->wined3d_device)))
{
*shader = NULL;
return;
}
shader_impl = wined3d_shader_get_parent(wined3d_shader);
*shader = &shader_impl->ID3D10PixelShader_iface;
ID3D10PixelShader_AddRef(*shader);
}
static void STDMETHODCALLTYPE d3d10_device_PSGetSamplers(ID3D10Device *iface,