internal DefaultStatistics(StatisticsModel parent, ITexture texture, LayerMipmapRange lm) { Luminance = new DefaultStatisticsType(parent.LuminanceShader, texture, parent, lm); Average = new DefaultStatisticsType(parent.UniformShader, texture, parent, lm); Luma = new DefaultStatisticsType(parent.LumaShader, texture, parent, lm); Lightness = new DefaultStatisticsType(parent.LightnessShader, texture, parent, lm); Alpha = new DefaultStatisticsType(parent.AlphaShader, texture, parent, lm); }
internal DefaultStatisticsType(StatisticsShader shader, ITexture texture, StatisticsModel parent, LayerMipmapRange lm) { this.shader = shader; this.texture = texture; this.parent = parent; this.lm = lm; minValue = null; maxValue = null; avgValue = null; }
internal DefaultStatisticsType(StatisticsShader shader, ITexture texture, StatisticsModel parent, int layer, int mipmap) { this.shader = shader; this.texture = texture; this.parent = parent; this.layer = layer; this.mipmap = mipmap; minValue = null; maxValue = null; avgValue = null; }