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 "EffectVariable11.h"
\r
26 using System::Runtime::InteropServices::OutAttribute;
\r
30 namespace D3DCompiler
\r
32 value class ShaderParameterDescription;
\r
35 namespace Direct3D11
\r
37 ref class PixelShader;
\r
38 ref class VertexShader;
\r
39 ref class GeometryShader;
\r
40 ref class DomainShader;
\r
41 ref class HullShader;
\r
42 ref class ComputeShader;
\r
44 value class EffectShaderDescription;
\r
47 /// Represents a shader effect variable.
\r
49 /// <unmanaged>ID3DX11EffectShaderVariable</unmanaged>
\r
50 public ref class EffectShaderVariable : public EffectVariable
\r
53 ID3DX11EffectShaderVariable* m_Pointer;
\r
56 EffectShaderVariable( ID3DX11EffectShaderVariable* pointer );
\r
60 /// Initializes a new instance of the <see cref="EffectShaderVariable"/> class.
\r
62 /// <param name="pointer">A pointer to the unmanaged interface.</param>
\r
63 EffectShaderVariable( System::IntPtr pointer );
\r
66 /// Gets a pixel shader.
\r
68 /// <param name="index">The zero-based index of the pixel shader to retrieve.</param>
\r
69 /// <returns>The pixel shader at the specified index.</returns>
\r
70 PixelShader^ GetPixelShader( int index );
\r
73 /// Gets a vertex shader.
\r
75 /// <param name="index">The zero-based index of the vertex shader to retrieve.</param>
\r
76 /// <returns>The vertex shader at the specified index.</returns>
\r
77 VertexShader^ GetVertexShader( int index );
\r
80 /// Gets a geometry shader.
\r
82 /// <param name="index">The zero-based index of the geometry shader to retrieve.</param>
\r
83 /// <returns>The geometry shader at the specified index.</returns>
\r
84 GeometryShader^ GetGeometryShader( int index );
\r
87 /// Gets a hull shader.
\r
89 /// <param name="index">The zero-based index of the hull shader to retrieve.</param>
\r
90 /// <returns>The hull shader at the specified index.</returns>
\r
91 HullShader^ GetHullShader( int index );
\r
94 /// Gets a domain shader.
\r
96 /// <param name="index">The zero-based index of the domain shader to retrieve.</param>
\r
97 /// <returns>The domain shader at the specified index.</returns>
\r
98 DomainShader^ GetDomainShader( int index );
\r
101 /// Gets a compute shader.
\r
103 /// <param name="index">The zero-based index of the compute shader to retrieve.</param>
\r
104 /// <returns>The compute shader at the specified index.</returns>
\r
105 ComputeShader^ GetComputeShader( int index );
\r
108 /// Gets the description for a single element of the given shader's input signature.
\r
110 /// <param name="shaderIndex">The zero-based shader index.</param>
\r
111 /// <param name="parameterIndex">The index of the signature element.</param>
\r
112 /// <returns>The description for the given shader signature element.</returns>
\r
113 D3DCompiler::ShaderParameterDescription GetInputParameterDescription( int shaderIndex, int parameterIndex );
\r
116 /// Gets the description for a single element of the given shader's output signature.
\r
118 /// <param name="shaderIndex">The zero-based shader index.</param>
\r
119 /// <param name="parameterIndex">The index of the signature element.</param>
\r
120 /// <returns>The description for the given shader signature element.</returns>
\r
121 D3DCompiler::ShaderParameterDescription GetOutputParameterDescription( int shaderIndex, int parameterIndex );
\r
124 /// Gets the description for a single element of the given shader's patch constant signature.
\r
126 /// <param name="shaderIndex">The zero-based shader index.</param>
\r
127 /// <param name="parameterIndex">The index of the signature element.</param>
\r
128 /// <returns>The description for the given shader signature element.</returns>
\r
129 D3DCompiler::ShaderParameterDescription GetPatchConstantDescription( int shaderIndex, int parameterIndex );
\r
132 /// Gets the description for the given shader.
\r
134 /// <param name="shaderIndex">The zero-based shader index.</param>
\r
135 /// <returns>The description for the given shader.</returns>
\r
136 EffectShaderDescription GetShaderDescription( int shaderIndex );
\r