mshtml: Check for the container's doc being NULL in nsTooltipListener_OnShowTooltip...
[wine] / include / d3dx9shader.h
1 /*
2  * Copyright 2008 Luis Busquets
3  *
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.
8  *
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.
13  *
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
17  */
18
19 #ifndef __D3DX9SHADER_H__
20 #define __D3DX9SHADER_H__
21
22 #include "d3dx9.h"
23
24 typedef LPCSTR D3DXHANDLE;
25
26 typedef enum D3DXPARAMETER_CLASS
27 {
28     D3DXPC_SCALAR,
29     D3DXPC_VECTOR,
30     D3DXPC_MATRIX_ROWS,
31     D3DXPC_MATRIX_COLUMNS,
32     D3DXPC_OBJECT,
33     D3DXPC_STRUCT,
34     D3DXPC_FORCE_DWORD = 0x7fffffff,
35 } D3DXPARAMETER_CLASS, *LPD3DXPARAMETER_CLASS;
36
37 typedef enum D3DXPARAMETER_TYPE
38 {
39     D3DXPT_VOID,
40     D3DXPT_BOOL,
41     D3DXPT_INT,
42     D3DXPT_FLOAT,
43     D3DXPT_STRING,
44     D3DXPT_TEXTURE,
45     D3DXPT_TEXTURE1D,
46     D3DXPT_TEXTURE2D,
47     D3DXPT_TEXTURE3D,
48     D3DXPT_TEXTURECUBE,
49     D3DXPT_SAMPLER,
50     D3DXPT_SAMPLER1D,
51     D3DXPT_SAMPLER2D,
52     D3DXPT_SAMPLER3D,
53     D3DXPT_SAMPLERCUBE,
54     D3DXPT_PIXELSHADER,
55     D3DXPT_VERTEXSHADER,
56     D3DXPT_PIXELFRAGMENT,
57     D3DXPT_VERTEXFRAGMENT,
58     D3DXPT_UNSUPPORTED,
59     D3DXPT_FORCE_DWORD = 0x7fffffff,
60 } D3DXPARAMETER_TYPE, *LPD3DXPARAMETER_TYPE;
61
62 typedef struct _D3DXMACRO {
63     LPCSTR Name;
64     LPCSTR Definition;
65 } D3DXMACRO, *LPD3DXMACRO;
66
67
68 #ifdef __cplusplus
69 extern "C" {
70 #endif
71
72 LPCSTR WINAPI D3DXGetPixelShaderProfile(LPDIRECT3DDEVICE9 device);
73 UINT WINAPI D3DXGetShaderSize(const DWORD *byte_code);
74 DWORD WINAPI D3DXGetShaderVersion(const DWORD *byte_code);
75 LPCSTR WINAPI D3DXGetVertexShaderProfile(LPDIRECT3DDEVICE9 device);
76
77 #ifdef __cplusplus
78 }
79 #endif
80
81 #endif /* __D3DX9SHADER_H__ */