rasterizer_cache: Use SurfaceType instead of Aspect

* It was doing pointless enum conversions when both enums described the same thing
This commit is contained in:
emufan4568
2022-09-07 20:33:18 +03:00
committed by GPUCode
parent 1a48cf7e7d
commit f69a33574c
7 changed files with 97 additions and 77 deletions

View File

@ -23,6 +23,8 @@ struct Rectangle {
constexpr Rectangle(T left, T top, T right, T bottom)
: left(left), top(top), right(right), bottom(bottom) {}
auto operator<=>(const Rectangle&) const = default;
[[nodiscard]] T GetWidth() const {
return std::abs(static_cast<std::make_signed_t<T>>(right - left));
}