mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
d3d11: Partially implement d3d11_immediate_context_PSSetShader().
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d53c5020c3
commit
acd78b54c0
3 changed files with 21 additions and 1 deletions
|
@ -272,6 +272,7 @@ struct d3d_pixel_shader
|
|||
|
||||
HRESULT d3d_pixel_shader_create(struct d3d_device *device, const void *byte_code, SIZE_T byte_code_length,
|
||||
struct d3d_pixel_shader **shader) DECLSPEC_HIDDEN;
|
||||
struct d3d_pixel_shader *unsafe_impl_from_ID3D11PixelShader(ID3D11PixelShader *iface) DECLSPEC_HIDDEN;
|
||||
struct d3d_pixel_shader *unsafe_impl_from_ID3D10PixelShader(ID3D10PixelShader *iface) DECLSPEC_HIDDEN;
|
||||
|
||||
HRESULT shader_parse_signature(const char *data, DWORD data_size, struct wined3d_shader_signature *s) DECLSPEC_HIDDEN;
|
||||
|
|
|
@ -145,8 +145,18 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_PSSetShaderResources(ID3D1
|
|||
static void STDMETHODCALLTYPE d3d11_immediate_context_PSSetShader(ID3D11DeviceContext *iface,
|
||||
ID3D11PixelShader *shader, ID3D11ClassInstance *const *class_instances, UINT class_instance_count)
|
||||
{
|
||||
FIXME("iface %p, shader %p, class_instances %p, class_instance_count %u stub!\n",
|
||||
struct d3d_device *device = device_from_immediate_ID3D11DeviceContext(iface);
|
||||
struct d3d_pixel_shader *ps = unsafe_impl_from_ID3D11PixelShader(shader);
|
||||
|
||||
TRACE("iface %p, shader %p, class_instances %p, class_instance_count %u.\n",
|
||||
iface, shader, class_instances, class_instance_count);
|
||||
|
||||
if (class_instances)
|
||||
FIXME("Dynamic linking is not implemented yet.\n");
|
||||
|
||||
wined3d_mutex_lock();
|
||||
wined3d_device_set_pixel_shader(device->wined3d_device, ps ? ps->wined3d_shader : NULL);
|
||||
wined3d_mutex_unlock();
|
||||
}
|
||||
|
||||
static void STDMETHODCALLTYPE d3d11_immediate_context_PSSetSamplers(ID3D11DeviceContext *iface,
|
||||
|
|
|
@ -1066,6 +1066,15 @@ HRESULT d3d_pixel_shader_create(struct d3d_device *device, const void *byte_code
|
|||
return S_OK;
|
||||
}
|
||||
|
||||
struct d3d_pixel_shader *unsafe_impl_from_ID3D11PixelShader(ID3D11PixelShader *iface)
|
||||
{
|
||||
if (!iface)
|
||||
return NULL;
|
||||
assert(iface->lpVtbl == &d3d11_pixel_shader_vtbl);
|
||||
|
||||
return impl_from_ID3D11PixelShader(iface);
|
||||
}
|
||||
|
||||
struct d3d_pixel_shader *unsafe_impl_from_ID3D10PixelShader(ID3D10PixelShader *iface)
|
||||
{
|
||||
if (!iface)
|
||||
|
|
Loading…
Reference in a new issue