Exemple #1
0
        protected EffectUniform(EffectPass pass, ProgramUniform uniform)
        {
            Contract.Requires<ArgumentNullException>(pass != null);
            Contract.Requires<ArgumentNullException>(uniform != null);

            this.Pass = pass;
            this.Uniform = uniform;
        }
        public SamplerEffectUniform(EffectPass pass, ProgramUniform uniform, TextureUnit textureUnit)
            : base(pass, uniform)
        {
            Contract.Requires<ArgumentNullException>(pass != null);
            Contract.Requires<ArgumentNullException>(uniform != null);
            Contract.Requires<ArgumentOutOfRangeException>(textureUnit >= TextureUnit.Zero);

            this.TextureUnit = textureUnit;
        }
 public SamplerEffectUniform(EffectPass pass, ProgramUniform uniform)
     : this(pass, uniform, 0)
 {
     Contract.Requires<ArgumentNullException>(pass != null);
     Contract.Requires<ArgumentNullException>(uniform != null);
 }
 public DataEffectUniform(EffectPass pass, ProgramUniform uniform)
     : base(pass, uniform)
 {
     Contract.Requires<ArgumentNullException>(pass != null);
     Contract.Requires<ArgumentNullException>(uniform != null);
 }