private void AppendLuaLayer(FilterProgram chain, string name) { var luaNativeSurface = LuaSurfaceSets[name].GetCurrent(); if (luaNativeSurface == null) { return; } Texture2d luaNativeTexture = LuaSurfaceFrugalizers[name].Get(luaNativeSurface); var fLuaLayer = new Filters.LuaLayer(); fLuaLayer.SetTexture(luaNativeTexture); chain.AddFilter(fLuaLayer, name); }
Filters.LuaLayer AppendLuaLayer(FilterProgram chain, string name) { Texture2d luaNativeTexture = null; var luaNativeSurface = LuaSurfaceSets[name].GetCurrent(); if (luaNativeSurface == null) return null; luaNativeTexture = LuaSurfaceFrugalizers[name].Get(luaNativeSurface); var fLuaLayer = new Filters.LuaLayer(); fLuaLayer.SetTexture(luaNativeTexture); chain.AddFilter(fLuaLayer, name); return fLuaLayer; }