2 * Copyright 2016 Matteo Bruni for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #include "wine/port.h"
22 #include "d3dcompiler.h"
24 #include "wine/debug.h"
26 WINE_DEFAULT_DEBUG_CHANNEL(d3dx
);
28 HRESULT WINAPI
D3DX11CompileFromMemory(const char *data
, SIZE_T data_size
, const char *filename
,
29 const D3D10_SHADER_MACRO
*defines
, ID3D10Include
*include
, const char *entry_point
,
30 const char *target
, UINT sflags
, UINT eflags
, ID3DX11ThreadPump
*pump
, ID3D10Blob
**shader
,
31 ID3D10Blob
**error_messages
, HRESULT
*hresult
)
33 TRACE("data %s, data_size %lu, filename %s, defines %p, include %p, entry_point %s, target %s, "
34 "sflags %#x, eflags %#x, pump %p, shader %p, error_messages %p, hresult %p.\n",
35 debugstr_a(data
), data_size
, debugstr_a(filename
), defines
, include
, debugstr_a(entry_point
),
36 debugstr_a(target
), sflags
, eflags
, pump
, shader
, error_messages
, hresult
);
39 FIXME("Unimplemented ID3DX11ThreadPump handling.\n");
41 return D3DCompile(data
, data_size
, filename
, defines
, include
, entry_point
, target
,
42 sflags
, eflags
, shader
, error_messages
);
45 HRESULT WINAPI
D3DX11CompileFromFileA(const char *filename
, const D3D10_SHADER_MACRO
*defines
,
46 ID3D10Include
*include
, const char *entry_point
, const char *target
, UINT sflags
, UINT eflags
,
47 ID3DX11ThreadPump
*pump
, ID3D10Blob
**shader
, ID3D10Blob
**error_messages
, HRESULT
*hresult
)
49 FIXME("filename %s, defines %p, include %p, entry_point %s, target %s, sflags %#x, "
50 "eflags %#x, pump %p, shader %p, error_messages %p, hresult %p stub.\n",
51 debugstr_a(filename
), defines
, include
, debugstr_a(entry_point
), debugstr_a(target
),
52 sflags
, eflags
, pump
, shader
, error_messages
, hresult
);
57 HRESULT WINAPI
D3DX11CompileFromFileW(const WCHAR
*filename
, const D3D10_SHADER_MACRO
*defines
,
58 ID3D10Include
*include
, const char *entry_point
, const char *target
, UINT sflags
, UINT eflags
,
59 ID3DX11ThreadPump
*pump
, ID3D10Blob
**shader
, ID3D10Blob
**error_messages
, HRESULT
*hresult
)
61 FIXME("filename %s, defines %p, include %p, entry_point %s, target %s, sflags %#x, "
62 "eflags %#x, pump %p, shader %p, error_messages %p, hresult %p stub.\n",
63 debugstr_w(filename
), defines
, include
, debugstr_a(entry_point
), debugstr_a(target
),
64 sflags
, eflags
, pump
, shader
, error_messages
, hresult
);
69 HRESULT WINAPI
D3DX11CreateTextureFromMemory(ID3D11Device
*device
, const void *data
,
70 SIZE_T data_size
, D3DX11_IMAGE_LOAD_INFO
*load_info
, ID3DX11ThreadPump
*pump
,
71 ID3D11Resource
**texture
, HRESULT
*hresult
)
73 FIXME("device %p, data %p, data_size %lu, load_info %p, pump %p, texture %p, hresult %p stub.\n",
74 device
, data
, data_size
, load_info
, pump
, texture
, hresult
);