VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/d3d10_1.idl@ 53201

最後變更 在這個檔案從53201是 53201,由 vboxsync 提交於 10 年 前

Devices/Main: vmsvga updates

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 3.5 KB
 
1/*
2 * Copyright 2010 Jacek Caban for CodeWeavers
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
19import "oaidl.idl";
20import "ocidl.idl";
21
22import "d3d10.idl";
23cpp_quote("#include <d3d10_1shader.h>")
24
25const UINT D3D10_1_SHADER_MAJOR_VERSION = 4;
26const UINT D3D10_1_SHADER_MINOR_VERSION = 1;
27
28typedef enum D3D10_FEATURE_LEVEL1
29{
30 D3D10_FEATURE_LEVEL_10_0 = 0xa000,
31 D3D10_FEATURE_LEVEL_10_1 = 0xa100,
32 D3D10_FEATURE_LEVEL_9_1 = 0x9100,
33 D3D10_FEATURE_LEVEL_9_2 = 0x9200,
34 D3D10_FEATURE_LEVEL_9_3 = 0x9300
35} D3D10_FEATURE_LEVEL1;
36
37typedef struct D3D10_RENDER_TARGET_BLEND_DESC1
38{
39 BOOL BlendEnable;
40 D3D10_BLEND SrcBlend;
41 D3D10_BLEND DestBlend;
42 D3D10_BLEND_OP BlendOp;
43 D3D10_BLEND SrcBlendAlpha;
44 D3D10_BLEND DestBlendAlpha;
45 D3D10_BLEND_OP BlendOpAlpha;
46 UINT8 RenderTargetWriteMask;
47} D3D10_RENDER_TARGET_BLEND_DESC1;
48
49typedef struct D3D10_BLEND_DESC1
50{
51 BOOL AlphaToCoverageEnable;
52 BOOL IndependentBlendEnable;
53 D3D10_RENDER_TARGET_BLEND_DESC1 RenderTarget[D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT];
54} D3D10_BLEND_DESC1;
55
56[
57 uuid(edad8d99-8a35-4d6d-8566-2ea276cde161),
58 object,
59 local,
60 pointer_default(unique)
61]
62interface ID3D10BlendState1 : ID3D10BlendState
63{
64 void GetDesc1([out] D3D10_BLEND_DESC1 *pDesc);
65}
66
67typedef struct D3D10_TEXCUBE_ARRAY_SRV1
68{
69 UINT MostDetailedMip;
70 UINT MipLevels;
71 UINT First2DArrayFace;
72 UINT NumCubes;
73} D3D10_TEXCUBE_ARRAY_SRV1;
74
75typedef D3D_SRV_DIMENSION D3D10_SRV_DIMENSION1;
76
77typedef struct D3D10_SHADER_RESOURCE_VIEW_DESC1
78{
79 DXGI_FORMAT Format;
80 D3D10_SRV_DIMENSION1 ViewDimension;
81 union {
82 D3D10_BUFFER_SRV Buffer;
83 D3D10_TEX1D_SRV Texture1D;
84 D3D10_TEX1D_ARRAY_SRV Texture1DArray;
85 D3D10_TEX2D_SRV Texture2D;
86 D3D10_TEX2D_ARRAY_SRV Texture2DArray;
87 D3D10_TEX2DMS_SRV Texture2DMS;
88 D3D10_TEX2DMS_ARRAY_SRV Texture2DMSArray;
89 D3D10_TEX3D_SRV Texture3D;
90 D3D10_TEXCUBE_SRV TextureCube;
91 D3D10_TEXCUBE_ARRAY_SRV1 TextureCubeArray;
92 };
93} D3D10_SHADER_RESOURCE_VIEW_DESC1;
94
95[
96 uuid(9b7e4c87-342c-4106-a19f-4f2704f689f0),
97 object,
98 local,
99 pointer_default(unique)
100]
101interface ID3D10ShaderResourceView1 : ID3D10ShaderResourceView
102{
103 void GetDesc1([out] D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc);
104}
105
106[
107 uuid(9b7e4c8f-342c-4106-a19f-4f2704f689f0),
108 object,
109 local,
110 pointer_default(unique)
111]
112interface ID3D10Device1 : ID3D10Device
113{
114 HRESULT CreateShaderResourceView1(
115 [in] ID3D10Resource *pResource,
116 [in, out] const D3D10_SHADER_RESOURCE_VIEW_DESC1 *pDesc,
117 [out] ID3D10ShaderResourceView1 **ppSRView);
118
119 HRESULT CreateBlendState1(
120 [in] const D3D10_BLEND_DESC1 *pBlendStateDesc,
121 [out] ID3D10BlendState1 **ppBlendState);
122
123 D3D10_FEATURE_LEVEL1 GetFeatureLevel();
124}
125
126const UINT D3D10_1_SDK_VERSION = 0x20;
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette