=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d11: Implement d3d11_immediate_context_VSGetShader().
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Nov 12 09:58:28 CST 2015
Module: wine
Branch: master
Commit: 3804746de16abc98462c512c5bf32cd708d1792c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3804746de16abc98462c512c5bf32cd708d1792c
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Wed Nov 11 03:40:55 2015 +0100
d3d11: Implement d3d11_immediate_context_VSGetShader().
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d11/device.c | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index b632e08..9261ce8 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -1066,8 +1066,28 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_PSGetSamplers(ID3D11Device
static void STDMETHODCALLTYPE d3d11_immediate_context_VSGetShader(ID3D11DeviceContext *iface,
ID3D11VertexShader **shader, ID3D11ClassInstance **class_instances, UINT *class_instance_count)
{
- FIXME("iface %p, shader %p, class_instances %p, class_instance_count %p stub!\n",
+ struct d3d_device *device = device_from_immediate_ID3D11DeviceContext(iface);
+ struct d3d_vertex_shader *shader_impl;
+ struct wined3d_shader *wined3d_shader;
+
+ TRACE("iface %p, shader %p, class_instances %p, class_instance_count %p.\n",
iface, shader, class_instances, class_instance_count);
+
+ if (class_instances || class_instance_count)
+ FIXME("Dynamic linking not implemented yet.\n");
+
+ wined3d_mutex_lock();
+ if (!(wined3d_shader = wined3d_device_get_vertex_shader(device->wined3d_device)))
+ {
+ wined3d_mutex_unlock();
+ *shader = NULL;
+ return;
+ }
+
+ shader_impl = wined3d_shader_get_parent(wined3d_shader);
+ wined3d_mutex_unlock();
+ *shader = &shader_impl->ID3D11VertexShader_iface;
+ ID3D11VertexShader_AddRef(*shader);
}
static void STDMETHODCALLTYPE d3d11_immediate_context_PSGetConstantBuffers(ID3D11DeviceContext *iface,
More information about the wine-cvs
mailing list