Flutter Engine
The Flutter Engine
|
#include <Swizzle.h>
Public Types | |
using | sk_is_trivially_relocatable = std::true_type |
Public Member Functions | |
constexpr | Swizzle () |
constexpr | Swizzle (const char c[4]) |
constexpr | Swizzle (const Swizzle &)=default |
constexpr Swizzle & | operator= (const Swizzle &that)=default |
constexpr bool | operator== (const Swizzle &that) const |
constexpr bool | operator!= (const Swizzle &that) const |
constexpr uint16_t | asKey () const |
SkString | asString () const |
constexpr char | operator[] (int i) const |
constexpr Swizzle | selectChannelInR (int i) const |
constexpr std::array< float, 4 > | applyTo (std::array< float, 4 > color) const |
template<SkAlphaType AlphaType> | |
constexpr SkRGBA4f< AlphaType > | applyTo (SkRGBA4f< AlphaType > color) const |
void | apply (SkRasterPipeline *) const |
Static Public Member Functions | |
static constexpr Swizzle | Concat (const Swizzle &a, const Swizzle &b) |
static constexpr Swizzle | RGBA () |
static constexpr Swizzle | BGRA () |
static constexpr Swizzle | RRRA () |
static constexpr Swizzle | RGB1 () |
Friends | |
class | SwizzleCtorAccessor |
Represents a rgba swizzle. It can be converted either into a string or a eight bit int.
using skgpu::Swizzle::sk_is_trivially_relocatable = std::true_type |
|
inlineconstexpr |
|
explicitconstexpr |
|
constexprdefault |
void skgpu::Swizzle::apply | ( | SkRasterPipeline * | pipeline | ) | const |
Definition at line 17 of file Swizzle.cpp.
|
inlineconstexpr |
Convenience version for SkRGBA colors.
Definition at line 59 of file Swizzle.h.
|
constexpr |
Applies this swizzle to the input color and returns the swizzled color.
|
inlineconstexpr |
SkString skgpu::Swizzle::asString | ( | ) | const |
4 char null terminated string consisting only of chars 'r', 'g', 'b', 'a', '0', and '1'.
Definition at line 46 of file Swizzle.cpp.
|
inlinestaticconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
friend |