Henri Verbeet : d3d10core: Implement ID3D10Device::IASetVertexBuffers().

Alexandre Julliard julliard at winehq.org
Tue Mar 31 12:19:22 CDT 2009


Module: wine
Branch: master
Commit: 9ef184c168f47ae0c611b288c7ca0e9f45ce3fb7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9ef184c168f47ae0c611b288c7ca0e9f45ce3fb7

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Mar 31 09:38:14 2009 +0200

d3d10core: Implement ID3D10Device::IASetVertexBuffers().

---

 dlls/d3d10core/device.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d10core/device.c b/dlls/d3d10core/device.c
index 336ae85..bd82316 100644
--- a/dlls/d3d10core/device.c
+++ b/dlls/d3d10core/device.c
@@ -178,8 +178,17 @@ static void STDMETHODCALLTYPE d3d10_device_IASetVertexBuffers(ID3D10Device *ifac
         UINT start_slot, UINT buffer_count, ID3D10Buffer *const *buffers,
         const UINT *strides, const UINT *offsets)
 {
-    FIXME("iface %p, start_slot %u, buffer_count %u, buffers %p, strides %p, offsets %p stub!\n",
+    struct d3d10_device *This = (struct d3d10_device *)iface;
+    unsigned int i;
+
+    TRACE("iface %p, start_slot %u, buffer_count %u, buffers %p, strides %p, offsets %p\n",
             iface, start_slot, buffer_count, buffers, strides, offsets);
+
+    for (i = 0; i < buffer_count; ++i)
+    {
+        IWineD3DDevice_SetStreamSource(This->wined3d_device, start_slot,
+                ((struct d3d10_buffer *)buffers[i])->wined3d_buffer, offsets[i], strides[i]);
+    }
 }
 
 static void STDMETHODCALLTYPE d3d10_device_IASetIndexBuffer(ID3D10Device *iface,




More information about the wine-cvs mailing list