2 * Copyright 2009 Henri Verbeet for CodeWeavers
3 * Copyright 2010 Rico Schüller
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include "d3d10_private.h"
23 WINE_DEFAULT_DEBUG_CHANNEL(d3d10
);
25 HRESULT WINAPI
D3D10CompileShader(const char *data
, SIZE_T data_size
, const char *filename
,
26 const D3D10_SHADER_MACRO
*defines
, ID3D10Include
*include
, const char *entrypoint
,
27 const char *profile
, UINT flags
, ID3D10Blob
**shader
, ID3D10Blob
**error_messages
)
29 /* Forward to d3dcompiler */
30 return D3DCompile(data
, data_size
, filename
, defines
, include
,
31 entrypoint
, profile
, flags
, 0, shader
, error_messages
);
34 HRESULT WINAPI
D3D10DisassembleShader(const void *data
, SIZE_T data_size
,
35 BOOL color_code
, const char *comments
, ID3D10Blob
**disassembly
)
37 TRACE("data %p, data_size %#lx, color_code %#x, comments %p, disassembly %p.\n",
38 data
, data_size
, color_code
, comments
, disassembly
);
40 return D3DDisassemble(data
, data_size
, color_code
? D3D_DISASM_ENABLE_COLOR_CODE
: 0, comments
, disassembly
);