浏览代码

Tweaked equality operators on VolumeParameter

/main
Thomas 7 年前
当前提交
fdfd0ee6
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10
      ScriptableRenderPipeline/Core/Volume/VolumeParameter.cs

10
ScriptableRenderPipeline/Core/Volume/VolumeParameter.cs


return string.Format("{0} ({1})", value, overrideState);
}
public static bool operator ==(VolumeParameter<T> lhs, T rhs)
{
return lhs.value.Equals(rhs);
}
public static bool operator !=(VolumeParameter<T> lhs, T rhs)
{
return !(lhs == rhs);
}
//
// Implicit conversion; assuming the following:
//

正在加载...
取消
保存