2 * Copyright (c) 2007-2010 SlimDX Group
\r
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
\r
5 * of this software and associated documentation files (the "Software"), to deal
\r
6 * in the Software without restriction, including without limitation the rights
\r
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
\r
8 * copies of the Software, and to permit persons to whom the Software is
\r
9 * furnished to do so, subject to the following conditions:
\r
11 * The above copyright notice and this permission notice shall be included in
\r
12 * all copies or substantial portions of the Software.
\r
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
\r
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
\r
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
\r
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
\r
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
\r
24 #include "EnumsDC.h"
\r
28 namespace D3DCompiler
\r
31 /// Provides a description for a shader.
\r
33 /// <unmanaged>D3D11_SHADER_DESC</unmanaged>
\r
34 public ref class ShaderDescription
\r
37 ShaderDescription( const D3D11_SHADER_DESC &desc );
\r
41 /// Shader version type.
\r
43 property ShaderVersion Version;
\r
46 /// The name of the originator of the shader.
\r
48 property System::String^ Creator;
\r
51 /// Shader compilation/parse flags.
\r
53 property ShaderFlags Flags;
\r
56 /// The number of shader-constant buffers.
\r
58 property int ConstantBuffers;
\r
61 /// The number of resource (textures and buffers) bound to a shader.
\r
63 property int BoundResources;
\r
66 /// The number of parameters in the input signature.
\r
68 property int InputParameters;
\r
71 /// The number of parameters in the output signature.
\r
73 property int OutputParameters;
\r
76 /// The number of intermediate-language instructions in the compiled shader.
\r
78 property int InstructionCount;
\r
81 /// The number of temporary registers in the compiled shader.
\r
83 property int TempRegisterCount;
\r
86 /// Number of temporary arrays used.
\r
88 property int TempArrayCount;
\r
91 /// Number of constant defines.
\r
93 property int DefineCount;
\r
96 /// Number of declarations (input + output).
\r
98 property int DeclarationCount;
\r
101 /// Number of non-categorized texture instructions.
\r
103 property int TextureNormalInstructions;
\r
106 /// Number of texture load instructions.
\r
108 property int TextureLoadInstructions;
\r
111 /// Number of texture comparison instructions.
\r
113 property int TextureCompareInstructions;
\r
116 /// Number of texture bias instructions.
\r
118 property int TextureBiasInstructions;
\r
121 /// Number of texture gradient instructions.
\r
123 property int TextureGradientInstructions;
\r
126 /// Number of floating point arithmetic instructions used.
\r
128 property int FloatInstructionCount;
\r
131 /// Number of signed integer arithmetic instructions used.
\r
133 property int IntInstructionCount;
\r
136 /// Number of unsigned integer arithmetic instructions used.
\r
138 property int UintInstructionCount;
\r
141 /// Number of static flow control instructions used.
\r
143 property int StaticFlowControlCount;
\r
146 /// Number of dynamic flow control instructions used.
\r
148 property int DynamicFlowControlCount;
\r
151 /// Number of macro instructions used.
\r
153 property int MacroInstructionCount;
\r
156 /// Number of array instructions used.
\r
158 property int ArrayInstructionCount;
\r
161 /// Number of cut instructions used.
\r
163 property int CutInstructionCount;
\r
166 /// Number of emit instructions used.
\r
168 property int EmitInstructionCount;
\r
171 /// The output topology of the geometry shader.
\r
173 property Direct3D11::PrimitiveTopology GeometryShaderOutputTopology;
\r
176 /// Geometry shader maximum output vertex count.
\r
178 property int MaximumOutputVertexCount;
\r
181 /// The geometry shader/hull shader input primitive.
\r
183 property InputPrimitive InputPrimitive;
\r
186 /// Number of parameters in the patch-constant signature.
\r
188 property int PatchConstantParameters;
\r
191 /// Number of geometry shader instances.
\r
193 property int GeometryShaderInstanceCount;
\r
196 /// Number of control points in the hull shader and domain shader.
\r
198 property int ControlPoints;
\r
201 /// The tessellator output-primitive type.
\r
203 property TessellatorOutputPrimitive HullShaderOutputPrimitive;
\r
206 /// The tessellator partitioning mode.
\r
208 property TessellatorPartitioning HullShaderPartitioning;
\r
211 /// The tessellator domain.
\r
213 property TessellatorDomain TessellatorDomain;
\r
216 /// Number of barrier instructions in a compute shader.
\r
218 property int BarrierInstructions;
\r
221 /// Number of interlocked instructions in a compute shader.
\r
223 property int InterlockedInstructions;
\r
226 /// Number of texture writes in a compute shader.
\r
228 property int TextureStoreInstructions;
\r