#include <size.h>
Public Types | |
using | Type = T |
Public Member Functions | |
constexpr | TSize () |
constexpr | TSize (Type width, Type height) |
template<class U > | |
constexpr | TSize (const TSize< U > &other) |
constexpr TSize | operator* (Scalar scale) const |
constexpr TSize | operator/ (Scalar scale) const |
constexpr TSize | operator/ (const TSize &s) const |
constexpr bool | operator== (const TSize &s) const |
constexpr bool | operator!= (const TSize &s) const |
constexpr TSize | operator+ (const TSize &s) const |
constexpr TSize | operator- (const TSize &s) const |
constexpr TSize | operator- () const |
constexpr TSize | Min (const TSize &o) const |
constexpr TSize | Max (const TSize &o) const |
constexpr Type | MaxDimension () const |
constexpr TSize | Abs () const |
constexpr TSize | Floor () const |
constexpr TSize | Ceil () const |
constexpr TSize | Round () const |
constexpr Type | Area () const |
constexpr bool | IsEmpty () const |
Returns true if either of the width or height are 0, negative, or NaN. More... | |
constexpr bool | IsSquare () const |
constexpr size_t | MipCount () const |
Static Public Member Functions | |
static constexpr TSize | MakeWH (Type width, Type height) |
static constexpr TSize | Infinite () |
template<class U > | |
static constexpr TSize | Ceil (const TSize< U > &other) |
Public Attributes | |
Type | width = {} |
Type | height = {} |
using impeller::TSize< T >::Type = T |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 102 of file size.h.
Referenced by impeller::DecompressedImage::ConvertToRGBA(), and impeller::TextureDescriptor::GetByteSizeOfBaseMipLevel().
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
Returns true if either of the width or height are 0, negative, or NaN.
Definition at line 105 of file size.h.
Referenced by impeller::CanAppendToExistingAtlas(), impeller::Canvas::ClipRRect(), impeller::RenderTargetCache::CreateOffscreen(), impeller::RenderTargetAllocator::CreateOffscreen(), impeller::RenderTargetCache::CreateOffscreenMSAA(), impeller::RenderTargetAllocator::CreateOffscreenMSAA(), impeller::TextureDescriptor::IsValid(), impeller::TSize< int64_t >::MipCount(), impeller::PairsFitInAtlasOfSize(), and impeller::Picture::ToImage().
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlineconstexpr |
Definition at line 81 of file size.h.
Referenced by impeller::android::HardwareBufferDescriptor::MakeForSwapchainImage(), and impeller::Playground::OpenPlaygroundHere().
|
inlineconstexpr |
Definition at line 88 of file size.h.
Referenced by impeller::Tessellator::FilledRoundRect().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 115 of file size.h.
Referenced by impeller::Allocator::CreateTexture(), impeller::CreateTextureForDecompressedImage(), impeller::Contents::RenderToSnapshot(), and impeller::testing::TEST().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Type impeller::TSize< T >::height = {} |
Definition at line 23 of file size.h.
Referenced by impeller::TSize< int64_t >::Abs(), impeller::PathBuilder::AddRoundedRect(), impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::TSize< int64_t >::Area(), impeller::GaussianBlurFilterContents::CalculateUVs(), impeller::CanAppendToExistingAtlas(), impeller::TSize< int64_t >::Ceil(), impeller::Canvas::ClipRRect(), impeller::RoundRectGeometry::CoversArea(), impeller::CreateAtlasBitmap(), impeller::Allocator::CreateTexture(), impeller::TRect< Scalar >::Expand(), impeller::Tessellator::FilledRoundRect(), impeller::TSize< int64_t >::Floor(), impeller::RenderTargetConfig::Hash(), impeller::TSize< int64_t >::IsEmpty(), impeller::TSize< int64_t >::IsSquare(), impeller::TRect< Scalar >::MakeOriginSize(), impeller::Matrix::MakeOrthographic(), impeller::Matrix::MakePerspective(), impeller::testing::MetalScreenshotter::MakeScreenshot(), impeller::testing::VulkanScreenshotter::MakeScreenshot(), impeller::TRect< Scalar >::MakeSize(), impeller::TSize< int64_t >::MakeWH(), impeller::TSize< int64_t >::Max(), impeller::TSize< int64_t >::MaxDimension(), impeller::TSize< int64_t >::Min(), impeller::TSize< int64_t >::MipCount(), impeller::TSize< int64_t >::operator!=(), impeller::Trig::operator*(), impeller::TSize< int64_t >::operator*(), impeller::TPoint< Scalar >::operator*(), impeller::TPoint< Scalar >::operator*=(), impeller::TSize< int64_t >::operator+(), impeller::TPoint< Scalar >::operator+(), impeller::TPoint< Scalar >::operator+=(), impeller::TSize< int64_t >::operator-(), impeller::TPoint< Scalar >::operator-(), impeller::operator-(), impeller::TPoint< Scalar >::operator-=(), impeller::TSize< int64_t >::operator/(), impeller::TPoint< Scalar >::operator/(), impeller::operator/(), impeller::TPoint< Scalar >::operator/=(), std::operator<<(), impeller::TSize< int64_t >::operator==(), impeller::OptimumAtlasSizeForFontGlyphPairs(), impeller::PairsFitInAtlasOfSize(), impeller::TSize< int64_t >::Round(), SizeNear(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::android::ToAHardwareBufferDesc(), and impeller::ToMTLTextureDescriptor().
Type impeller::TSize< T >::width = {} |
Definition at line 22 of file size.h.
Referenced by impeller::TSize< int64_t >::Abs(), impeller::PathBuilder::AddRoundedRect(), impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::TSize< int64_t >::Area(), impeller::GaussianBlurFilterContents::CalculateUVs(), impeller::CanAppendToExistingAtlas(), impeller::TSize< int64_t >::Ceil(), impeller::Canvas::ClipRRect(), impeller::RoundRectGeometry::CoversArea(), impeller::CreateAtlasBitmap(), impeller::Allocator::CreateTexture(), impeller::CreateVKImageView(), impeller::CreateVKImageWrapperForAndroidHarwareBuffer(), impeller::TRect< Scalar >::Expand(), impeller::Tessellator::FilledRoundRect(), impeller::TSize< int64_t >::Floor(), impeller::TextureDescriptor::GetBytesPerRow(), impeller::RenderTargetConfig::Hash(), impeller::TSize< int64_t >::IsEmpty(), impeller::TSize< int64_t >::IsSquare(), impeller::TRect< Scalar >::MakeOriginSize(), impeller::Matrix::MakeOrthographic(), impeller::Matrix::MakePerspective(), impeller::testing::MetalScreenshotter::MakeScreenshot(), impeller::testing::VulkanScreenshotter::MakeScreenshot(), impeller::TRect< Scalar >::MakeSize(), impeller::TSize< int64_t >::MakeWH(), impeller::TSize< int64_t >::Max(), impeller::TSize< int64_t >::MaxDimension(), impeller::TSize< int64_t >::Min(), impeller::TSize< int64_t >::MipCount(), impeller::TSize< int64_t >::operator!=(), impeller::Trig::operator*(), impeller::TSize< int64_t >::operator*(), impeller::TPoint< Scalar >::operator*(), impeller::TPoint< Scalar >::operator*=(), impeller::TSize< int64_t >::operator+(), impeller::TPoint< Scalar >::operator+(), impeller::TPoint< Scalar >::operator+=(), impeller::TSize< int64_t >::operator-(), impeller::TPoint< Scalar >::operator-(), impeller::operator-(), impeller::TPoint< Scalar >::operator-=(), impeller::TSize< int64_t >::operator/(), impeller::TPoint< Scalar >::operator/(), impeller::operator/(), impeller::TPoint< Scalar >::operator/=(), std::operator<<(), impeller::TSize< int64_t >::operator==(), impeller::OptimumAtlasSizeForFontGlyphPairs(), impeller::PairsFitInAtlasOfSize(), impeller::SolidRRectBlurContents::Render(), impeller::TSize< int64_t >::Round(), SizeNear(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::android::ToAHardwareBufferDesc(), impeller::ToMTLTextureDescriptor(), and impeller::ToTextureDescriptor().