Beispiel #1
0
 private void ExecuteDumpInfo(FrameDebugDumpInfo dumpInfo)
 {
     foreach (var eventInfo in dumpInfo.events)
     {
         ExecShaderInfo(eventInfo.shaderInfo);
     }
 }
Beispiel #2
0
        public Texture2D LoadTexture(FrameDebugDumpInfo.SavedTextureInfo textureInfo)
        {
            Texture2D texture = null;

            if (textureInfo == null || textureInfo.path == null)
            {
                return(null);
            }
            if (cachedTexture.TryGetValue(textureInfo.path, out texture))
            {
                return(texture);
            }
            texture = FrameDebugDumpInfo.LoadTexture(this.currentDir, textureInfo);
            cachedTexture.Add(textureInfo.path, texture);

            return(texture);
        }
Beispiel #3
0
        private void CreateDictionary()
        {
            this.variantDict = new Dictionary <string, ShaderVariantInfo>();
            var files = GetFiles();

            foreach (var file in files)
            {
                try
                {
                    var dumpInfo = FrameDebugDumpInfo.LoadFromFile(file);
                    ExecuteDumpInfo(dumpInfo);
                } catch (System.Exception e)
                {
                    Debug.LogError(file + e);
                }
            }
        }