ReactOS  0.4.15-dev-3173-g40ee59d
d3d11shader.h
Go to the documentation of this file.
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 #ifndef __D3D11SHADER_H__
20 #define __D3D11SHADER_H__
21 
22 #include "d3dcommon.h"
23 
24 /* These are defined as version-neutral in d3dcommon.h */
26 
28 
30 
32 
34 
35 typedef struct _D3D11_SHADER_DESC
36 {
38  const char *Creator;
76 
78 {
79  const char *Name;
83  void *DefaultValue;
89 
91 {
99  const char *Name;
101 
103 {
104  const char *Name;
110 
112 {
113  const char *Name;
122 
124 {
125  const char *SemanticName;
134 
135 DEFINE_GUID(IID_ID3D11ShaderReflectionType, 0x6e6ffa6a, 0x9bae, 0x4613, 0xa5, 0x1e, 0x91, 0x65, 0x2d, 0x50, 0x8c, 0x21);
136 
137 #define INTERFACE ID3D11ShaderReflectionType
138 DECLARE_INTERFACE(ID3D11ShaderReflectionType)
139 {
141  STDMETHOD_(struct ID3D11ShaderReflectionType *, GetMemberTypeByIndex)(THIS_ UINT index) PURE;
142  STDMETHOD_(struct ID3D11ShaderReflectionType *, GetMemberTypeByName)(THIS_ const char *name) PURE;
143  STDMETHOD_(const char *, GetMemberTypeName)(THIS_ UINT index) PURE;
144  STDMETHOD(IsEqual)(THIS_ struct ID3D11ShaderReflectionType *type) PURE;
145  STDMETHOD_(struct ID3D11ShaderReflectionType *, GetSubType)(THIS) PURE;
146  STDMETHOD_(struct ID3D11ShaderReflectionType *, GetBaseClass)(THIS) PURE;
148  STDMETHOD_(struct ID3D11ShaderReflectionType *, GetInterfaceByIndex)(THIS_ UINT index) PURE;
149  STDMETHOD(IsOfType)(THIS_ struct ID3D11ShaderReflectionType *type) PURE;
150  STDMETHOD(ImplementsInterface)(THIS_ ID3D11ShaderReflectionType *base) PURE;
151 };
152 #undef INTERFACE
153 
154 DEFINE_GUID(IID_ID3D11ShaderReflectionVariable, 0x51f23923, 0xf3e5, 0x4bd1, 0x91, 0xcb, 0x60, 0x61, 0x77, 0xd8, 0xdb, 0x4c);
155 
156 #define INTERFACE ID3D11ShaderReflectionVariable
157 DECLARE_INTERFACE(ID3D11ShaderReflectionVariable)
158 {
160  STDMETHOD_(struct ID3D11ShaderReflectionType *, GetType)(THIS) PURE;
161  STDMETHOD_(struct ID3D11ShaderReflectionConstantBuffer *, GetBuffer)(THIS) PURE;
162  STDMETHOD_(UINT, GetInterfaceSlot)(THIS_ UINT index) PURE;
163 };
164 #undef INTERFACE
165 
166 DEFINE_GUID(IID_ID3D11ShaderReflectionConstantBuffer, 0xeb62d63d, 0x93dd, 0x4318, 0x8a, 0xe8, 0xc6, 0xf8, 0x3a, 0xd3, 0x71, 0xb8);
167 
168 #define INTERFACE ID3D11ShaderReflectionConstantBuffer
169 DECLARE_INTERFACE(ID3D11ShaderReflectionConstantBuffer)
170 {
172  STDMETHOD_(struct ID3D11ShaderReflectionVariable *, GetVariableByIndex)(THIS_ UINT index) PURE;
173  STDMETHOD_(struct ID3D11ShaderReflectionVariable *, GetVariableByName)(THIS_ const char *name) PURE;
174 };
175 #undef INTERFACE
176 
177 DEFINE_GUID(IID_ID3D11ShaderReflection, 0x0a233719, 0x3960, 0x4578, 0x9d, 0x7c, 0x20, 0x3b, 0x8b, 0x1d, 0x9c, 0xc1);
178 
179 #define INTERFACE ID3D11ShaderReflection
180 DECLARE_INTERFACE_(ID3D11ShaderReflection, IUnknown)
181 {
182  /* IUnknown methods */
186  /* ID3D11ShaderReflection methods */
188  STDMETHOD_(struct ID3D11ShaderReflectionConstantBuffer *, GetConstantBufferByIndex)(THIS_ UINT index) PURE;
189  STDMETHOD_(struct ID3D11ShaderReflectionConstantBuffer *, GetConstantBufferByName)(THIS_ const char *name) PURE;
190  STDMETHOD(GetResourceBindingDesc)(THIS_ UINT index, D3D11_SHADER_INPUT_BIND_DESC *desc) PURE;
192  STDMETHOD(GetOutputParameterDesc)(THIS_ UINT index, D3D11_SIGNATURE_PARAMETER_DESC *desc) PURE;
193  STDMETHOD(GetPatchConstantParameterDesc)(THIS_ UINT index, D3D11_SIGNATURE_PARAMETER_DESC *desc) PURE;
194  STDMETHOD_(struct ID3D11ShaderReflectionVariable *, GetVariableByName)(THIS_ const char *name) PURE;
195  STDMETHOD(GetResourceBindingDescByName)(THIS_ const char *name, D3D11_SHADER_INPUT_BIND_DESC *desc) PURE;
196  STDMETHOD_(UINT, GetMovInstructionCount)(THIS) PURE;
197  STDMETHOD_(UINT, GetMovcInstructionCount)(THIS) PURE;
198  STDMETHOD_(UINT, GetConversionInstructionCount)(THIS) PURE;
199  STDMETHOD_(UINT, GetBitwiseInstructionCount)(THIS) PURE;
200  STDMETHOD_(D3D_PRIMITIVE, GetGSInputPrimitive)(THIS) PURE;
201  STDMETHOD_(BOOL, IsSampleFrequencyShader)(THIS) PURE;
202  STDMETHOD_(UINT, GetNumInterfaceSlots)(THIS) PURE;
203  STDMETHOD(GetMinFeatureLevel)(THIS_ enum D3D_FEATURE_LEVEL *level) PURE;
204  STDMETHOD_(UINT, GetThreadGroupSize)(THIS_ UINT *sizex, UINT *sizey, UINT *sizez) PURE;
205  STDMETHOD_(UINT64, GetRequiresFlags)(THIS) PURE;
206 };
207 #undef INTERFACE
208 
209 #endif
D3D_RESOURCE_RETURN_TYPE
Definition: d3dcommon.idl:566
GLint level
Definition: gl.h:1546
D3D_TESSELLATOR_DOMAIN D3D11_TESSELLATOR_DOMAIN
Definition: d3d11shader.h:29
UINT MacroInstructionCount
Definition: d3d11shader.h:59
#define REFIID
Definition: guiddef.h:118
D3D_RESOURCE_RETURN_TYPE D3D11_RESOURCE_RETURN_TYPE
Definition: d3d11shader.h:27
D3D_SRV_DIMENSION Dimension
Definition: d3d11shader.h:119
struct _D3D11_SIGNATURE_PARAMETER_DESC D3D11_SIGNATURE_PARAMETER_DESC
#define THIS_
Definition: basetyps.h:65
D3D_RESOURCE_RETURN_TYPE ReturnType
Definition: d3d11shader.h:118
#define THIS
Definition: basetyps.h:66
UINT TextureBiasInstructions
Definition: d3d11shader.h:52
D3D_SHADER_INPUT_TYPE Type
Definition: d3d11shader.h:114
REFIID riid
Definition: precomp.h:44
D3D_TESSELLATOR_OUTPUT_PRIMITIVE HSOutputPrimitive
Definition: d3d11shader.h:69
UINT cTextureStoreInstructions
Definition: d3d11shader.h:74
D3D_CBUFFER_TYPE D3D11_CBUFFER_TYPE
Definition: d3d11shader.h:25
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
return pMemory GetBuffer()
D3D_FL9_3_MAX_TEXTURE_REPEAT enum _D3D_SHADER_VARIABLE_CLASS D3D_SHADER_VARIABLE_CLASS
enum _D3D_SHADER_VARIABLE_TYPE D3D_SHADER_VARIABLE_TYPE
struct _D3D11_SHADER_BUFFER_DESC D3D11_SHADER_BUFFER_DESC
UINT FloatInstructionCount
Definition: d3d11shader.h:54
D3D_SHADER_VARIABLE_CLASS Class
Definition: d3d11shader.h:92
UINT TextureLoadInstructions
Definition: d3d11shader.h:50
UINT ArrayInstructionCount
Definition: d3d11shader.h:60
#define STDMETHOD(m)
Definition: basetyps.h:62
D3D_CBUFFER_TYPE
Definition: d3dcommon.idl:491
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint base
Definition: 3dtext.c:35
D3D_TESSELLATOR_OUTPUT_PRIMITIVE
Definition: d3dcommon.idl:477
struct _D3D11_SHADER_INPUT_BIND_DESC D3D11_SHADER_INPUT_BIND_DESC
static const WCHAR desc[]
Definition: protectdata.c:36
D3D_TESSELLATOR_PARTITIONING
Definition: d3dcommon.idl:463
UINT TextureGradientInstructions
Definition: d3d11shader.h:53
UINT GSMaxOutputVertexCount
Definition: d3d11shader.h:64
struct _D3D11_SHADER_VARIABLE_DESC D3D11_SHADER_VARIABLE_DESC
D3D_PRIMITIVE InputPrimitive
Definition: d3d11shader.h:65
UINT DynamicFlowControlCount
Definition: d3d11shader.h:58
D3D_SRV_DIMENSION
Definition: d3dcommon.idl:505
D3D_TESSELLATOR_DOMAIN TessellatorDomain
Definition: d3d11shader.h:71
D3D_NAME
Definition: d3dcommon.idl:592
UINT PatchConstantParameters
Definition: d3d11shader.h:66
static FILE * out
Definition: regtests2xml.c:44
D3D_TESSELLATOR_PARTITIONING HSPartitioning
Definition: d3d11shader.h:70
DEFINE_GUID(IID_ID3D11ShaderReflectionType, 0x6e6ffa6a, 0x9bae, 0x4613, 0xa5, 0x1e, 0x91, 0x65, 0x2d, 0x50, 0x8c, 0x21)
D3D_CBUFFER_TYPE Type
Definition: d3d11shader.h:105
struct _D3D11_SHADER_TYPE_DESC D3D11_SHADER_TYPE_DESC
#define index(s, c)
Definition: various.h:29
enum _D3D_SHADER_INPUT_TYPE D3D_SHADER_INPUT_TYPE
D3D_REGISTER_COMPONENT_TYPE ComponentType
Definition: d3d11shader.h:129
D3D_TESSELLATOR_OUTPUT_PRIMITIVE D3D11_TESSELLATOR_OUTPUT_PRIMITIVE
Definition: d3d11shader.h:33
D3D_TESSELLATOR_PARTITIONING D3D11_TESSELLATOR_PARTITIONING
Definition: d3d11shader.h:31
unsigned char BYTE
Definition: xxhash.c:193
D3D_FEATURE_LEVEL
Definition: d3dcommon.idl:81
#define GetType(This)
Definition: conio.h:54
D3D_SHADER_VARIABLE_TYPE Type
Definition: d3d11shader.h:93
UINT StaticFlowControlCount
Definition: d3d11shader.h:57
_In_ BOOLEAN Release
Definition: cdrom.h:920
UINT TextureCompInstructions
Definition: d3d11shader.h:51
#define PURE
Definition: basetyps.h:64
unsigned int UINT
Definition: ndis.h:50
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
D3D_PRIMITIVE_TOPOLOGY GSOutputTopology
Definition: d3d11shader.h:63
DECLARE_INTERFACE(ID3D11ShaderReflectionType)
Definition: d3d11shader.h:138
return pUsbDevice GetNumInterfaces()
const char * Creator
Definition: d3d11shader.h:38
D3D_PRIMITIVE
Definition: d3dcommon.idl:267
unsigned int ULONG
Definition: retypes.h:1
D3D_PRIMITIVE_TOPOLOGY
Definition: d3dcommon.idl:353
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
UINT cInterlockedInstructions
Definition: d3d11shader.h:73
unsigned long long UINT64
struct _D3D11_SHADER_DESC D3D11_SHADER_DESC
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
UINT TextureNormalInstructions
Definition: d3d11shader.h:49
D3D_REGISTER_COMPONENT_TYPE
Definition: d3dcommon.idl:554
D3D_TESSELLATOR_DOMAIN
Definition: d3dcommon.idl:451
DECLARE_INTERFACE_(ID3D11ShaderReflection, IUnknown)
Definition: d3d11shader.h:180
GLuint const GLchar * name
Definition: glext.h:6031