msvcrt: Added _fwprintf_l implementation.
[wine.git] / include / d3dcompiler.h
blob047c1eaeba9793813d6b2e8f40240851ec9fdbe8
1 /*
2 * Copyright 2010 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
19 #ifndef __D3DCOMPILER_H__
20 #define __D3DCOMPILER_H__
22 #include "d3d11shader.h"
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
28 #define D3DCOMPILE_DEBUG 0x00000001
29 #define D3DCOMPILE_SKIP_VALIDATION 0x00000002
30 #define D3DCOMPILE_SKIP_OPTIMIZATION 0x00000004
31 #define D3DCOMPILE_PACK_MATRIX_ROW_MAJOR 0x00000008
32 #define D3DCOMPILE_PACK_MATRIX_COLUMN_MAJOR 0x00000010
33 #define D3DCOMPILE_PARTIAL_PRECISION 0x00000020
34 #define D3DCOMPILE_FORCE_VS_SOFTWARE_NO_OPT 0x00000040
35 #define D3DCOMPILE_FORCE_PS_SOFTWARE_NO_OPT 0x00000080
36 #define D3DCOMPILE_NO_PRESHADER 0x00000100
37 #define D3DCOMPILE_AVOID_FLOW_CONTROL 0x00000200
38 #define D3DCOMPILE_PREFER_FLOW_CONTROL 0x00000400
39 #define D3DCOMPILE_ENABLE_STRICTNESS 0x00000800
40 #define D3DCOMPILE_ENABLE_BACKWARDS_COMPATIBILITY 0x00001000
41 #define D3DCOMPILE_IEEE_STRICTNESS 0x00002000
42 #define D3DCOMPILE_OPTIMIZATION_LEVEL0 0x00004000
43 #define D3DCOMPILE_OPTIMIZATION_LEVEL1 0x00000000
44 #define D3DCOMPILE_OPTIMIZATION_LEVEL2 0x0000c000
45 #define D3DCOMPILE_OPTIMIZATION_LEVEL3 0x00008000
46 #define D3DCOMPILE_WARNINGS_ARE_ERRORS 0x00040000
48 #define D3D_DISASM_ENABLE_COLOR_CODE 0x00000001
49 #define D3D_DISASM_ENABLE_DEFAULT_VALUE_PRINTS 0x00000002
50 #define D3D_DISASM_ENABLE_INSTRUCTION_NUMBERING 0x00000004
51 #define D3D_DISASM_ENABLE_INSTRUCTION_CYCLE 0x00000008
52 #define D3D_DISASM_DISABLE_DEBUG_INFO 0x00000010
54 HRESULT WINAPI D3DCompile(const void *data, SIZE_T data_size, const char *filename,
55 const D3D_SHADER_MACRO *defines, ID3DInclude *include, const char *entrypoint,
56 const char *target, UINT sflags, UINT eflags, ID3DBlob **shader, ID3DBlob **error_messages);
58 typedef enum D3DCOMPILER_STRIP_FLAGS
60 D3DCOMPILER_STRIP_REFLECTION_DATA = 1,
61 D3DCOMPILER_STRIP_DEBUG_INFO = 2,
62 D3DCOMPILER_STRIP_TEST_BLOBS = 4,
63 D3DCOMPILER_STRIP_FORCE_DWORD = 0x7fffffff
64 } D3DCOMPILER_STRIP_FLAGS;
66 HRESULT WINAPI D3DStripShader(const void *data, SIZE_T data_size, UINT flags, ID3DBlob **blob);
68 typedef enum D3D_BLOB_PART
70 D3D_BLOB_INPUT_SIGNATURE_BLOB,
71 D3D_BLOB_OUTPUT_SIGNATURE_BLOB,
72 D3D_BLOB_INPUT_AND_OUTPUT_SIGNATURE_BLOB,
73 D3D_BLOB_PATCH_CONSTANT_SIGNATURE_BLOB,
74 D3D_BLOB_ALL_SIGNATURE_BLOB,
75 D3D_BLOB_DEBUG_INFO,
76 D3D_BLOB_LEGACY_SHADER,
77 D3D_BLOB_XNA_PREPASS_SHADER,
78 D3D_BLOB_XNA_SHADER,
79 D3D_BLOB_TEST_ALTERNATE_SHADER = 0x8000,
80 D3D_BLOB_TEST_COMPILE_DETAILS,
81 D3D_BLOB_TEST_COMPILE_PERF
82 } D3D_BLOB_PART;
84 HRESULT WINAPI D3DDisassemble(const void *data, SIZE_T data_size,
85 UINT flags, const char *comments, ID3DBlob **disassembly);
86 HRESULT WINAPI D3DGetBlobPart(const void *data, SIZE_T data_size, D3D_BLOB_PART part, UINT flags, ID3DBlob **blob);
87 HRESULT WINAPI D3DGetInputSignatureBlob(const void *data, SIZE_T data_size, ID3DBlob **blob);
88 HRESULT WINAPI D3DGetOutputSignatureBlob(const void *data, SIZE_T data_size, ID3DBlob **blob);
89 HRESULT WINAPI D3DGetInputAndOutputSignatureBlob(const void *data, SIZE_T data_size, ID3DBlob **blob);
90 HRESULT WINAPI D3DGetDebugInfo(const void *data, SIZE_T data_size, ID3DBlob **blob);
92 HRESULT WINAPI D3DReflect(const void *data, SIZE_T data_size, REFIID riid, void **reflector);
94 HRESULT WINAPI D3DCreateBlob(SIZE_T data_size, ID3DBlob **blob);
96 HRESULT WINAPI D3DPreprocess(const void *data, SIZE_T size, const char *filename,
97 const D3D_SHADER_MACRO *defines, ID3DInclude *include,
98 ID3DBlob **shader, ID3DBlob **error_messages);
100 #ifdef __cplusplus
102 #endif
104 #endif