Esempio n. 1
0
        public unsafe void SetPipelineUniform(PipelineUniform uniform, Vector4[] values)
        {
            if (uniform.Owner == null)
            {
                return;                                    //uniform was optimized out
            }
            var v = new global::SlimDX.Vector4[values.Length];

            for (int i = 0; i < values.Length; i++)
            {
                v[i] = values[i].ToSlimDXVector4();
            }
            foreach (var ui in uniform.UniformInfos)
            {
                var uw = ui.Opaque as UniformWrapper;
                uw.CT.SetValue(dev, uw.EffectHandle, v);
            }
        }
Esempio n. 2
0
		public unsafe void SetPipelineUniform(PipelineUniform uniform, Vector4[] values)
		{
			if (uniform.Owner == null) return; //uniform was optimized out
			var v = new global::SlimDX.Vector4[values.Length];
			for (int i = 0; i < values.Length; i++)
				v[i] = values[i].ToSlimDXVector4();
			foreach (var ui in uniform.UniformInfos)
			{
				var uw = ui.Opaque as UniformWrapper;
				uw.CT.SetValue(dev, uw.EffectHandle, v);
			}
		}