ReactOS 0.4.16-dev-122-g325d74c
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
35typedef struct _D3D11_SHADER_DESC
36{
38 const char *Creator;
76
78{
79 const char *Name;
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
135DEFINE_GUID(IID_ID3D11ShaderReflectionType, 0x6e6ffa6a, 0x9bae, 0x4613, 0xa5, 0x1e, 0x91, 0x65, 0x2d, 0x50, 0x8c, 0x21);
136
137#define INTERFACE ID3D11ShaderReflectionType
138DECLARE_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
154DEFINE_GUID(IID_ID3D11ShaderReflectionVariable, 0x51f23923, 0xf3e5, 0x4bd1, 0x91, 0xcb, 0x60, 0x61, 0x77, 0xd8, 0xdb, 0x4c);
155
156#define INTERFACE ID3D11ShaderReflectionVariable
157DECLARE_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
166DEFINE_GUID(IID_ID3D11ShaderReflectionConstantBuffer, 0xeb62d63d, 0x93dd, 0x4318, 0x8a, 0xe8, 0xc6, 0xf8, 0x3a, 0xd3, 0x71, 0xb8);
167
168#define INTERFACE ID3D11ShaderReflectionConstantBuffer
169DECLARE_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
177DEFINE_GUID(IID_ID3D11ShaderReflection, 0x0a233719, 0x3960, 0x4578, 0x9d, 0x7c, 0x20, 0x3b, 0x8b, 0x1d, 0x9c, 0xc1);
178
179#define INTERFACE ID3D11ShaderReflection
180DECLARE_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;
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
unsigned long long UINT64
#define index(s, c)
Definition: various.h:29
#define DECLARE_INTERFACE_(i, b)
Definition: basetyps.h:78
#define PURE
Definition: basetyps.h:64
#define THIS_
Definition: basetyps.h:65
#define THIS
Definition: basetyps.h:66
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
#define STDMETHOD(m)
Definition: basetyps.h:62
#define DECLARE_INTERFACE(i)
Definition: basetyps.h:73
_In_ BOOLEAN Release
Definition: cdrom.h:920
D3D_TESSELLATOR_OUTPUT_PRIMITIVE D3D11_TESSELLATOR_OUTPUT_PRIMITIVE
Definition: d3d11shader.h:33
struct _D3D11_SHADER_TYPE_DESC D3D11_SHADER_TYPE_DESC
D3D_CBUFFER_TYPE D3D11_CBUFFER_TYPE
Definition: d3d11shader.h:25
D3D_RESOURCE_RETURN_TYPE D3D11_RESOURCE_RETURN_TYPE
Definition: d3d11shader.h:27
struct _D3D11_SHADER_INPUT_BIND_DESC D3D11_SHADER_INPUT_BIND_DESC
struct _D3D11_SHADER_BUFFER_DESC D3D11_SHADER_BUFFER_DESC
D3D_TESSELLATOR_DOMAIN D3D11_TESSELLATOR_DOMAIN
Definition: d3d11shader.h:29
struct _D3D11_SHADER_DESC D3D11_SHADER_DESC
D3D_TESSELLATOR_PARTITIONING D3D11_TESSELLATOR_PARTITIONING
Definition: d3d11shader.h:31
struct _D3D11_SHADER_VARIABLE_DESC D3D11_SHADER_VARIABLE_DESC
struct _D3D11_SIGNATURE_PARAMETER_DESC D3D11_SIGNATURE_PARAMETER_DESC
D3D_FEATURE_LEVEL
Definition: d3dcommon.idl:82
D3D_TESSELLATOR_OUTPUT_PRIMITIVE
Definition: d3dcommon.idl:478
enum _D3D_SHADER_VARIABLE_CLASS D3D_SHADER_VARIABLE_CLASS
enum _D3D_SHADER_INPUT_TYPE D3D_SHADER_INPUT_TYPE
D3D_TESSELLATOR_PARTITIONING
Definition: d3dcommon.idl:464
D3D_TESSELLATOR_DOMAIN
Definition: d3dcommon.idl:452
D3D_SRV_DIMENSION
Definition: d3dcommon.idl:506
D3D_NAME
Definition: d3dcommon.idl:593
D3D_RESOURCE_RETURN_TYPE
Definition: d3dcommon.idl:567
enum _D3D_SHADER_VARIABLE_TYPE D3D_SHADER_VARIABLE_TYPE
D3D_CBUFFER_TYPE
Definition: d3dcommon.idl:492
D3D_PRIMITIVE
Definition: d3dcommon.idl:268
D3D_REGISTER_COMPONENT_TYPE
Definition: d3dcommon.idl:555
D3D_PRIMITIVE_TOPOLOGY
Definition: d3dcommon.idl:354
@ IsEqual
Definition: fatprocs.h:1887
unsigned int BOOL
Definition: ntddk_ex.h:94
return pMemory GetBuffer()
return pUsbDevice GetNumInterfaces()
GLint level
Definition: gl.h:1546
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
REFIID riid
Definition: atlbase.h:39
static const WCHAR desc[]
Definition: protectdata.c:36
static HRESULT QueryInterface(REFIID, void **)
Definition: events.c:2587
static ULONG WINAPI AddRef(IStream *iface)
Definition: clist.c:90
unsigned int UINT
Definition: ndis.h:50
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
#define REFIID
Definition: guiddef.h:118
static FILE * out
Definition: regtests2xml.c:44
D3D_CBUFFER_TYPE Type
Definition: d3d11shader.h:105
UINT TextureCompInstructions
Definition: d3d11shader.h:51
D3D_TESSELLATOR_PARTITIONING HSPartitioning
Definition: d3d11shader.h:70
UINT GSMaxOutputVertexCount
Definition: d3d11shader.h:64
UINT TextureGradientInstructions
Definition: d3d11shader.h:53
UINT PatchConstantParameters
Definition: d3d11shader.h:66
const char * Creator
Definition: d3d11shader.h:38
UINT TextureBiasInstructions
Definition: d3d11shader.h:52
UINT StaticFlowControlCount
Definition: d3d11shader.h:57
D3D_PRIMITIVE InputPrimitive
Definition: d3d11shader.h:65
D3D_PRIMITIVE_TOPOLOGY GSOutputTopology
Definition: d3d11shader.h:63
D3D_TESSELLATOR_DOMAIN TessellatorDomain
Definition: d3d11shader.h:71
UINT cInterlockedInstructions
Definition: d3d11shader.h:73
UINT TextureLoadInstructions
Definition: d3d11shader.h:50
UINT DynamicFlowControlCount
Definition: d3d11shader.h:58
D3D_TESSELLATOR_OUTPUT_PRIMITIVE HSOutputPrimitive
Definition: d3d11shader.h:69
UINT cTextureStoreInstructions
Definition: d3d11shader.h:74
UINT TextureNormalInstructions
Definition: d3d11shader.h:49
UINT MacroInstructionCount
Definition: d3d11shader.h:59
UINT FloatInstructionCount
Definition: d3d11shader.h:54
UINT ArrayInstructionCount
Definition: d3d11shader.h:60
D3D_SRV_DIMENSION Dimension
Definition: d3d11shader.h:119
D3D_SHADER_INPUT_TYPE Type
Definition: d3d11shader.h:114
D3D_RESOURCE_RETURN_TYPE ReturnType
Definition: d3d11shader.h:118
D3D_SHADER_VARIABLE_CLASS Class
Definition: d3d11shader.h:92
D3D_SHADER_VARIABLE_TYPE Type
Definition: d3d11shader.h:93
D3D_REGISTER_COMPONENT_TYPE ComponentType
Definition: d3d11shader.h:129
Definition: name.c:39
uint32_t ULONG
Definition: typedefs.h:59
#define GetType(This)
Definition: conio.h:54
unsigned char BYTE
Definition: xxhash.c:193