Ejemplo n.º 1
0
        //only update value that has been Serialized above
        public override void UpdateValue(ComputeShaderParameterBase other)
        {
            var newValue = other as ComputeShaderParameter <T>;

            if (newValue != null)
            {
                this.VariableName = newValue.VariableName;
                this.Value        = newValue.Value;
            }
            else
            {
                Debug.LogWarning("Cannot update value for type " + this.GetType().ToString());
            }
        }
Ejemplo n.º 2
0
 public abstract void UpdateValue(ComputeShaderParameterBase other);