浏览代码

Merge pull request #1174 from Unity-Technologies/fix/ShaderCompilationInMemoryAssemblies

Skip in memory assemblies for the shader generator
/main
GitHub 7 年前
当前提交
7a76fbbe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/Core/CoreRP/Editor/ShaderGenerator/CSharpToHLSL.cs

2
ScriptableRenderPipeline/Core/CoreRP/Editor/ShaderGenerator/CSharpToHLSL.cs


// Iterate over assemblyList, discover all applicable types with fully qualified names
var assemblyList = AppDomain.CurrentDomain.GetAssemblies()
// We need to exclude dynamic assemblies (their type can't be queried, throwing an exception below)
//.Where(ass => !ass.IsDynamic)
.Where(ass => !(ass.ManifestModule is System.Reflection.Emit.ModuleBuilder))
.ToList();
foreach (var assembly in assemblyList)

正在加载...
取消
保存