public Models(int numPipelines = 1) { NumPipelines = numPipelines; CheckDeviceCapabilities(); SharedModel = new SharedModel(); Images = new ImagesModel(SharedModel.ScaleShader); TextureCache = new TextureCache(Images); pixelValueShader = new PixelValueShader(SharedModel); polarConvertShader = new ConvertPolarShader(SharedModel.QuadShader); Export = new ExportModel(SharedModel); Filter = new FiltersModel(Images); //Gif = new GifModel(sharedModel.QuadShader); Progress = new ProgressModel(); for (int i = 0; i < numPipelines; ++i) { pipelines.Add(new ImagePipeline(i)); pipelines.Last().PropertyChanged += PipeOnPropertyChanged; } Pipelines = pipelines; stats = new StatisticsModel(SharedModel); thumbnail = new ThumbnailModel(SharedModel.QuadShader); // pipeline controller pipelineController = new PipelineController(this); }
public Models(int numPipelines = 1) { NumPipelines = numPipelines; CheckDeviceCapabilities(); SharedModel = new SharedModel(); Images = new ImagesModel(SharedModel.ScaleShader); TextureCache = new ImageModelTextureCache(Images); Filter = new FiltersModel(Images); Progress = new ProgressModel(); for (int i = 0; i < numPipelines; ++i) { pipelines.Add(new ImagePipeline(i)); pipelines.Last().PropertyChanged += PipeOnPropertyChanged; } Pipelines = pipelines; // pipeline controller pipelineController = new PipelineController(this); }
internal GifModel(QuadShader quad, UploadBuffer upload, ProgressModel progressModel) { this.progressModel = progressModel; shader = new GifShader(quad, upload); }
internal GifModel(ProgressModel progressModel) { this.progressModel = progressModel; shader = new GifShader(); }