Henri Verbeet : d3d10core: Implement d3d10_device_IAGetInputLayout().
Alexandre Julliard
julliard at winehq.org
Mon Nov 26 15:19:19 CST 2012
Module: wine
Branch: master
Commit: 86779241c6c3969b50c8fbd50a943f47c2b3458e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=86779241c6c3969b50c8fbd50a943f47c2b3458e
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Sat Nov 24 17:17:08 2012 +0100
d3d10core: Implement d3d10_device_IAGetInputLayout().
---
dlls/d3d10core/device.c | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d10core/device.c b/dlls/d3d10core/device.c
index 0623ee5..3ac02a0 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,
More information about the wine-cvs
mailing list