4 using System.Diagnostics;
6 using System.Reflection;
7 using System.Runtime.InteropServices;
9 using Microsoft.VisualStudio.Shell;
10 using SiliconStudio.Paradox.VisualStudio.CodeGenerator;
13 namespace SiliconStudio.Paradox.VisualStudio.Shaders
16 [ClassInterface(ClassInterfaceType.None)]
17 [Guid(GuidList.guidParadox_VisualStudio_ShaderKeyFileGenerator)]
21 public const string DisplayName =
"Paradox Shader C# Key Generator";
22 public const string InternalName =
"ParadoxShaderKeyGenerator";
29 protected override byte[]
GenerateCode(
string inputFileName,
string inputFileContent)
35 var remoteCommands = ParadoxCommandsProxy.CreateProxy(domain);
36 return remoteCommands.GenerateShaderKeys(inputFileName, inputFileContent);
40 GeneratorError(4, ex.ToString(), 0, 0);
static AppDomain CreateAppDomain()
Proxies commands to real IParadoxCommands implementation.
Base code generator with site implementation
override string GetDefaultExtension()
Gets the default extension of the output file from the CodeDomProvider
override byte[] GenerateCode(string inputFileName, string inputFileContent)
The method that does the actual work of generating code given the input file