VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/d3d11shader.h

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

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 8.2 KB
 
1/*
2 * Copyright 2010 Matteo Bruni 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
19/*
20 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __D3D11SHADER_H__
29#define __D3D11SHADER_H__
30
31#include "d3dcommon.h"
32
33/* These are defined as version-neutral in d3dcommon.h */
34typedef D3D_CBUFFER_TYPE D3D11_CBUFFER_TYPE;
35
36typedef D3D_RESOURCE_RETURN_TYPE D3D11_RESOURCE_RETURN_TYPE;
37
38typedef D3D_TESSELLATOR_DOMAIN D3D11_TESSELLATOR_DOMAIN;
39
40typedef D3D_TESSELLATOR_PARTITIONING D3D11_TESSELLATOR_PARTITIONING;
41
42typedef D3D_TESSELLATOR_OUTPUT_PRIMITIVE D3D11_TESSELLATOR_OUTPUT_PRIMITIVE;
43
44typedef struct _D3D11_SHADER_DESC
45{
46 UINT Version;
47 const char *Creator;
48 UINT Flags;
49 UINT ConstantBuffers;
50 UINT BoundResources;
51 UINT InputParameters;
52 UINT OutputParameters;
53 UINT InstructionCount;
54 UINT TempRegisterCount;
55 UINT TempArrayCount;
56 UINT DefCount;
57 UINT DclCount;
58 UINT TextureNormalInstructions;
59 UINT TextureLoadInstructions;
60 UINT TextureCompInstructions;
61 UINT TextureBiasInstructions;
62 UINT TextureGradientInstructions;
63 UINT FloatInstructionCount;
64 UINT IntInstructionCount;
65 UINT UintInstructionCount;
66 UINT StaticFlowControlCount;
67 UINT DynamicFlowControlCount;
68 UINT MacroInstructionCount;
69 UINT ArrayInstructionCount;
70 UINT CutInstructionCount;
71 UINT EmitInstructionCount;
72 D3D_PRIMITIVE_TOPOLOGY GSOutputTopology;
73 UINT GSMaxOutputVertexCount;
74 D3D_PRIMITIVE InputPrimitive;
75 UINT PatchConstantParameters;
76 UINT cGSInstanceCount;
77 UINT cControlPoints;
78 D3D_TESSELLATOR_OUTPUT_PRIMITIVE HSOutputPrimitive;
79 D3D_TESSELLATOR_PARTITIONING HSPartitioning;
80 D3D_TESSELLATOR_DOMAIN TessellatorDomain;
81 UINT cBarrierInstructions;
82 UINT cInterlockedInstructions;
83 UINT cTextureStoreInstructions;
84} D3D11_SHADER_DESC;
85
86typedef struct _D3D11_SHADER_VARIABLE_DESC
87{
88 const char *Name;
89 UINT StartOffset;
90 UINT Size;
91 UINT uFlags;
92 void *DefaultValue;
93 UINT StartTexture;
94 UINT TextureSize;
95 UINT StartSampler;
96 UINT SamplerSize;
97} D3D11_SHADER_VARIABLE_DESC;
98
99typedef struct _D3D11_SHADER_TYPE_DESC
100{
101 D3D_SHADER_VARIABLE_CLASS Class;
102 D3D_SHADER_VARIABLE_TYPE Type;
103 UINT Rows;
104 UINT Columns;
105 UINT Elements;
106 UINT Members;
107 UINT Offset;
108 const char *Name;
109} D3D11_SHADER_TYPE_DESC;
110
111typedef struct _D3D11_SHADER_BUFFER_DESC
112{
113 const char *Name;
114 D3D_CBUFFER_TYPE Type;
115 UINT Variables;
116 UINT Size;
117 UINT uFlags;
118} D3D11_SHADER_BUFFER_DESC;
119
120typedef struct _D3D11_SHADER_INPUT_BIND_DESC
121{
122 const char *Name;
123 D3D_SHADER_INPUT_TYPE Type;
124 UINT BindPoint;
125 UINT BindCount;
126 UINT uFlags;
127 D3D_RESOURCE_RETURN_TYPE ReturnType;
128 D3D_SRV_DIMENSION Dimension;
129 UINT NumSamples;
130} D3D11_SHADER_INPUT_BIND_DESC;
131
132typedef struct _D3D11_SIGNATURE_PARAMETER_DESC
133{
134 const char *SemanticName;
135 UINT SemanticIndex;
136 UINT Register;
137 D3D_NAME SystemValueType;
138 D3D_REGISTER_COMPONENT_TYPE ComponentType;
139 BYTE Mask;
140 BYTE ReadWriteMask;
141 UINT Stream;
142} D3D11_SIGNATURE_PARAMETER_DESC;
143
144DEFINE_GUID(IID_ID3D11ShaderReflectionType, 0x6e6ffa6a, 0x9bae, 0x4613, 0xa5, 0x1e, 0x91, 0x65, 0x2d, 0x50, 0x8c, 0x21);
145
146#define INTERFACE ID3D11ShaderReflectionType
147DECLARE_INTERFACE(ID3D11ShaderReflectionType)
148{
149 STDMETHOD(GetDesc)(THIS_ D3D11_SHADER_TYPE_DESC *desc) PURE;
150 STDMETHOD_(struct ID3D11ShaderReflectionType *, GetMemberTypeByIndex)(THIS_ UINT index) PURE;
151 STDMETHOD_(struct ID3D11ShaderReflectionType *, GetMemberTypeByName)(THIS_ const char *name) PURE;
152 STDMETHOD_(const char *, GetMemberTypeName)(THIS_ UINT index) PURE;
153 STDMETHOD(IsEqual)(THIS_ struct ID3D11ShaderReflectionType *type) PURE;
154 STDMETHOD_(struct ID3D11ShaderReflectionType *, GetSubType)(THIS) PURE;
155 STDMETHOD_(struct ID3D11ShaderReflectionType *, GetBaseClass)(THIS) PURE;
156 STDMETHOD_(UINT, GetNumInterfaces)(THIS) PURE;
157 STDMETHOD_(struct ID3D11ShaderReflectionType *, GetInterfaceByIndex)(THIS_ UINT index) PURE;
158 STDMETHOD(IsOfType)(THIS_ struct ID3D11ShaderReflectionType *type) PURE;
159 STDMETHOD(ImplementsInterface)(THIS_ ID3D11ShaderReflectionType *base) PURE;
160};
161#undef INTERFACE
162
163DEFINE_GUID(IID_ID3D11ShaderReflectionVariable, 0x51f23923, 0xf3e5, 0x4bd1, 0x91, 0xcb, 0x60, 0x61, 0x77, 0xd8, 0xdb, 0x4c);
164
165#define INTERFACE ID3D11ShaderReflectionVariable
166DECLARE_INTERFACE(ID3D11ShaderReflectionVariable)
167{
168 STDMETHOD(GetDesc)(THIS_ D3D11_SHADER_VARIABLE_DESC *desc) PURE;
169 STDMETHOD_(struct ID3D11ShaderReflectionType *, GetType)(THIS) PURE;
170 STDMETHOD_(struct ID3D11ShaderReflectionConstantBuffer *, GetBuffer)(THIS) PURE;
171 STDMETHOD_(UINT, GetInterfaceSlot)(THIS_ UINT index) PURE;
172};
173#undef INTERFACE
174
175DEFINE_GUID(IID_ID3D11ShaderReflectionConstantBuffer, 0xeb62d63d, 0x93dd, 0x4318, 0x8a, 0xe8, 0xc6, 0xf8, 0x3a, 0xd3, 0x71, 0xb8);
176
177#define INTERFACE ID3D11ShaderReflectionConstantBuffer
178DECLARE_INTERFACE(ID3D11ShaderReflectionConstantBuffer)
179{
180 STDMETHOD(GetDesc)(THIS_ D3D11_SHADER_BUFFER_DESC *desc) PURE;
181 STDMETHOD_(struct ID3D11ShaderReflectionVariable *, GetVariableByIndex)(THIS_ UINT index) PURE;
182 STDMETHOD_(struct ID3D11ShaderReflectionVariable *, GetVariableByName)(THIS_ const char *name) PURE;
183};
184#undef INTERFACE
185
186DEFINE_GUID(IID_ID3D11ShaderReflection, 0x0a233719, 0x3960, 0x4578, 0x9d, 0x7c, 0x20, 0x3b, 0x8b, 0x1d, 0x9c, 0xc1);
187
188#define INTERFACE ID3D11ShaderReflection
189DECLARE_INTERFACE_(ID3D11ShaderReflection, IUnknown)
190{
191 /* IUnknown methods */
192 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE;
193 STDMETHOD_(ULONG, AddRef)(THIS) PURE;
194 STDMETHOD_(ULONG, Release)(THIS) PURE;
195 /* ID3D11ShaderReflection methods */
196 STDMETHOD(GetDesc)(THIS_ D3D11_SHADER_DESC *desc) PURE;
197 STDMETHOD_(struct ID3D11ShaderReflectionConstantBuffer *, GetConstantBufferByIndex)(THIS_ UINT index) PURE;
198 STDMETHOD_(struct ID3D11ShaderReflectionConstantBuffer *, GetConstantBufferByName)(THIS_ const char *name) PURE;
199 STDMETHOD(GetResourceBindingDesc)(THIS_ UINT index, D3D11_SHADER_INPUT_BIND_DESC *desc) PURE;
200 STDMETHOD(GetInputParameterDesc)(THIS_ UINT index, D3D11_SIGNATURE_PARAMETER_DESC *desc) PURE;
201 STDMETHOD(GetOutputParameterDesc)(THIS_ UINT index, D3D11_SIGNATURE_PARAMETER_DESC *desc) PURE;
202 STDMETHOD(GetPatchConstantParameterDesc)(THIS_ UINT index, D3D11_SIGNATURE_PARAMETER_DESC *desc) PURE;
203 STDMETHOD_(struct ID3D11ShaderReflectionVariable *, GetVariableByName)(THIS_ const char *name) PURE;
204 STDMETHOD(GetResourceBindingDescByName)(THIS_ const char *name, D3D11_SHADER_INPUT_BIND_DESC *desc) PURE;
205 STDMETHOD_(UINT, GetMovInstructionCount)(THIS) PURE;
206 STDMETHOD_(UINT, GetMovcInstructionCount)(THIS) PURE;
207 STDMETHOD_(UINT, GetConversionInstructionCount)(THIS) PURE;
208 STDMETHOD_(UINT, GetBitwiseInstructionCount)(THIS) PURE;
209 STDMETHOD_(D3D_PRIMITIVE, GetGSInputPrimitive)(THIS) PURE;
210 STDMETHOD_(BOOL, IsSampleFrequencyShader)(THIS) PURE;
211 STDMETHOD_(UINT, GetNumInterfaceSlots)(THIS) PURE;
212 STDMETHOD(GetMinFeatureLevel)(THIS_ enum D3D_FEATURE_LEVEL *level) PURE;
213 STDMETHOD_(UINT, GetThreadGroupSize)(THIS_ UINT *sizex, UINT *sizey, UINT *sizez) PURE;
214};
215#undef INTERFACE
216
217#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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