3 #if SILICONSTUDIO_PARADOX_GRAPHICS_API_DIRECT3D
4 using SiliconStudio.Core.Storage;
6 namespace SiliconStudio.
Paradox.Graphics
8 public partial class EffectInputSignature
10 private readonly byte[] bytecode;
12 internal EffectInputSignature(ObjectId
id, byte[] bytecode)
15 this.bytecode = bytecode;
18 internal byte[] NativeSignature
26 public override string ToString()
28 var description =
"Input Parameters: ";
30 var shaderReflection =
new SharpDX.D3DCompiler.ShaderReflection(NativeSignature);
31 for (
int i = 0; i < shaderReflection.Description.InputParameters; i++)
33 var parameterDescription = shaderReflection.GetInputParameterDescription(i);
34 description += parameterDescription.SemanticName+parameterDescription.SemanticIndex;
36 if (i != shaderReflection.Description.InputParameters - 1)