d3d10_1.idl: Added some missing constants.
[wine.git] / include / d3d10_1.idl
blobd0e02d4b1b29ca1f36866129abd6a941fdd54bf8
1 /*
2 * Copyright 2010 Jacek Caban 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 import "oaidl.idl";
20 import "ocidl.idl";
22 const UINT D3D10_1_DEFAULT_SAMPLE_MASK = 0xffffffff;
23 const UINT D3D10_1_GS_INPUT_REGISTER_COUNT = 32;
24 const UINT D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = 32;
25 const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = 128;
26 const UINT D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = 32;
27 const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS = 1;
28 const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = 32;
29 const UINT D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT = 1;
30 const UINT D3D10_1_SHADER_MAJOR_VERSION = 4;
31 const UINT D3D10_1_SHADER_MINOR_VERSION = 1;
32 const UINT D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES = 2048;
33 const UINT D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = 256;
34 const UINT D3D10_1_SO_BUFFER_SLOT_COUNT = 4;
35 const UINT D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = 1;
36 const UINT D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT = 64;
37 const UINT D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT = 32;
38 const UINT D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT = 8;
39 const UINT D3D10_1_VS_INPUT_REGISTER_COUNT = 32;
40 const UINT D3D10_1_VS_OUTPUT_REGISTER_COUNT = 32;
42 cpp_quote("#define D3D10_1_FLOAT16_FUSED_TOLERANCE_IN_ULP (0.6)")
43 cpp_quote("#define D3D10_1_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP (0.6f)")
45 import "d3d10.idl";
46 cpp_quote("#include <d3d10_1shader.h>")
48 const UINT D3D10_1_SHADER_MAJOR_VERSION = 4;
49 const UINT D3D10_1_SHADER_MINOR_VERSION = 1;
51 typedef enum D3D10_FEATURE_LEVEL1
53 D3D10_FEATURE_LEVEL_10_0 = 0xa000,
54 D3D10_FEATURE_LEVEL_10_1 = 0xa100,
55 D3D10_FEATURE_LEVEL_9_1 = 0x9100,
56 D3D10_FEATURE_LEVEL_9_2 = 0x9200,
57 D3D10_FEATURE_LEVEL_9_3 = 0x9300
58 } D3D10_FEATURE_LEVEL1;
60 typedef struct D3D10_RENDER_TARGET_BLEND_DESC1
62 BOOL BlendEnable;
63 D3D10_BLEND SrcBlend;
64 D3D10_BLEND DestBlend;
65 D3D10_BLEND_OP BlendOp;
66 D3D10_BLEND SrcBlendAlpha;
67 D3D10_BLEND DestBlendAlpha;
68 D3D10_BLEND_OP BlendOpAlpha;
69 UINT8 RenderTargetWriteMask;
70 } D3D10_RENDER_TARGET_BLEND_DESC1;
72 typedef struct D3D10_BLEND_DESC1
74 BOOL AlphaToCoverageEnable;
75 BOOL IndependentBlendEnable;
76 D3D10_RENDER_TARGET_BLEND_DESC1 RenderTarget[D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT];
77 } D3D10_BLEND_DESC1;
80 uuid(edad8d99-8a35-4d6d-8566-2ea276cde161),
81 object,
82 local,
83 pointer_default(unique)
85 interface ID3D10BlendState1 : ID3D10BlendState
87 void GetDesc1([out] D3D10_BLEND_DESC1 *pDesc);
90 typedef struct D3D10_TEXCUBE_ARRAY_SRV1
92 UINT MostDetailedMip;
93 UINT MipLevels;
94 UINT First2DArrayFace;
95 UINT NumCubes;
96 } D3D10_TEXCUBE_ARRAY_SRV1;
98 typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION1;
100 typedef struct D3D10_SHADER_RESOURCE_VIEW_DESC1
102 DXGI_FORMAT Format;
103 D3D10_SRV_DIMENSION1 ViewDimension;
104 union {
105 D3D10_BUFFER_SRV Buffer;
106 D3D10_TEX1D_SRV Texture1D;
107 D3D10_TEX1D_ARRAY_SRV Texture1DArray;
108 D3D10_TEX2D_SRV Texture2D;
109 D3D10_TEX2D_ARRAY_SRV Texture2DArray;
110 D3D10_TEX2DMS_SRV Texture2DMS;
111 D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray;
112 D3D10_TEX3D_SRV Texture3D;
113 D3D10_TEXCUBE_SRV TextureCube;
114 D3D10_TEXCUBE_ARRAY_SRV1 TextureCubeArray;
116 } D3D10_SHADER_RESOURCE_VIEW_DESC1;
119 uuid(9b7e4c87-342c-4106-a19f-4f2704f689f0),
120 object,
121 local,
122 pointer_default(unique)
124 interface ID3D10ShaderResourceView1 : ID3D10ShaderResourceView
126 void GetDesc1([out] D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc);
130 uuid(9b7e4c8f-342c-4106-a19f-4f2704f689f0),
131 object,
132 local,
133 pointer_default(unique)
135 interface ID3D10Device1 : ID3D10Device
137 HRESULT CreateShaderResourceView1(
138 [in] ID3D10Resource *pResource,
139 [in, out] const D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc,
140 [out] ID3D10ShaderResourceView1 **ppSRView);
142 HRESULT CreateBlendState1(
143 [in] const D3D10_BLEND_DESC1 *pBlendStateDesc,
144 [out] ID3D10BlendState1 **ppBlendState);
146 D3D10_FEATURE_LEVEL1 GetFeatureLevel();
149 const UINT D3D10_1_SDK_VERSION = 0x20;
151 cpp_quote("HRESULT WINAPI D3D10CreateDevice1(IDXGIAdapter*,D3D10_DRIVER_TYPE,")
152 cpp_quote(" HMODULE,UINT,D3D10_FEATURE_LEVEL1,UINT,ID3D10Device1**);")