示例#1
0
 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);
 }
示例#2
0
 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;
 }
示例#3
0
 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;
 }