Release 9.12.
[wine.git] / dlls / d3d10 / shader.c
blobef8221a2737054c5eed208b4af4a3aca9681c899
1 /*
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 return D3DCompileFromMemory(data, data_size, filename, defines, include,
30 entrypoint, profile, flags, 0, shader, error_messages);
33 HRESULT WINAPI D3D10DisassembleShader(const void *data, SIZE_T data_size,
34 BOOL color_code, const char *comments, ID3D10Blob **disassembly)
36 TRACE("data %p, data_size %#Ix, color_code %#x, comments %p, disassembly %p.\n",
37 data, data_size, color_code, comments, disassembly);
39 return D3DDisassembleCode(data, data_size, color_code ? D3D_DISASM_ENABLE_COLOR_CODE : 0, comments, disassembly);