[PATCH] d3dx9: Implement D3DXCreateTextureShader with stubbed ID3DXTextureShader interface.

Matteo Bruni matteo.mystral at gmail.com
Mon Jul 25 18:23:29 CDT 2016


2016-07-21 11:06 GMT+02:00 Alistair Leslie-Hughes <leslie_alistair at hotmail.com>:

> +HRESULT WINAPI D3DXCreateTextureShader(const DWORD *function, ID3DXTextureShader **texture_shader)
> +{
> +    struct d3dx9_texture_shader *object;
> +
> +    TRACE("function %p, texture_shader %p.\n", function, texture_shader);
> +
> +    if (!function || !texture_shader)
> +        return D3DERR_INVALIDCALL;
> +
> +    object = HeapAlloc(GetProcessHeap(), 0, sizeof(*object));
> +    if (!object)
> +        return E_OUTOFMEMORY;
> +
> +    object->ID3DXTextureShader_iface.lpVtbl = &d3dx9_texture_shader_vtbl;
> +    object->ref = 1;
> +
> +    *texture_shader = &object->ID3DXTextureShader_iface;
> +
> +    return D3D_OK;
> +}

It would be nice to have a test for this.



More information about the wine-devel mailing list