private static ShaderTextExporter ShaderExporterInstantiator(Version version, ShaderGpuProgramType programType)
 {
     if (programType.IsDX())
     {
         return(new ShaderDXExporter(version, programType));
     }
     return(Shader.DefaultShaderExporterInstantiator(version, programType));
 }
Beispiel #2
0
 private static ShaderTextExporter ShaderExporterInstantiator(ShaderGpuProgramType programType)
 {
     if (s_isSupported && programType.IsDX())
     {
         return(new ShaderDXExporter());
     }
     return(Shader.DefaultShaderExporterInstantiator(programType));
 }