From 86779241c6c3969b50c8fbd50a943f47c2b3458e Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Sat, 24 Nov 2012 17:17:08 +0100 Subject: [PATCH] d3d10core: Implement d3d10_device_IAGetInputLayout(). --- dlls/d3d10core/device.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dlls/d3d10core/device.c b/dlls/d3d10core/device.c index 0623ee5caf..3ac02a00e5 100644 --- a/dlls/d3d10core/device.c +++ b/dlls/d3d10core/device.c @@ -548,7 +548,21 @@ static void STDMETHODCALLTYPE d3d10_device_PSGetConstantBuffers(ID3D10Device *if static void STDMETHODCALLTYPE d3d10_device_IAGetInputLayout(ID3D10Device *iface, ID3D10InputLayout **input_layout) { - FIXME("iface %p, input_layout %p stub!\n", iface, input_layout); + struct d3d10_device *device = impl_from_ID3D10Device(iface); + struct wined3d_vertex_declaration *wined3d_declaration; + struct d3d10_input_layout *input_layout_impl; + + TRACE("iface %p, input_layout %p.\n", iface, input_layout); + + if (!(wined3d_declaration = wined3d_device_get_vertex_declaration(device->wined3d_device))) + { + *input_layout = NULL; + return; + } + + input_layout_impl = wined3d_vertex_declaration_get_parent(wined3d_declaration); + *input_layout = &input_layout_impl->ID3D10InputLayout_iface; + ID3D10InputLayout_AddRef(*input_layout); } static void STDMETHODCALLTYPE d3d10_device_IAGetVertexBuffers(ID3D10Device *iface, -- 2.32.0.93.g670b81a890