#include <SkSLType.h>
Definition at line 38 of file SkSLType.h.
◆ Free()
Definition at line 39 of file SkSLType.h.
39{ return { 0, 0, false }; }
◆ Impossible()
Definition at line 42 of file SkSLType.h.
42{ return { 0, 0, true }; }
◆ isPossible()
bool SkSL::CoercionCost::isPossible |
( |
bool |
allowNarrowing | ) |
const |
|
inline |
◆ Narrowing()
Definition at line 41 of file SkSLType.h.
41{ return { 0, cost, false }; }
◆ Normal()
Definition at line 40 of file SkSLType.h.
40{ return { cost, 0, false }; }
◆ operator+()
Definition at line 49 of file SkSLType.h.
49 {
52 }
54 }
static CoercionCost Impossible()
◆ operator<()
bool SkSL::CoercionCost::operator< |
( |
CoercionCost |
rhs | ) |
const |
|
inline |
Definition at line 56 of file SkSLType.h.
56 {
58 std::tie(rhs.fImpossible, rhs.fNarrowingCost, rhs.fNormalCost);
59 }
◆ operator<=()
bool SkSL::CoercionCost::operator<= |
( |
CoercionCost |
rhs | ) |
const |
|
inline |
Definition at line 61 of file SkSLType.h.
61 {
63 std::tie(rhs.fImpossible, rhs.fNarrowingCost, rhs.fNormalCost);
64 }
◆ fImpossible
bool SkSL::CoercionCost::fImpossible |
◆ fNarrowingCost
int SkSL::CoercionCost::fNarrowingCost |
◆ fNormalCost
int SkSL::CoercionCost::fNormalCost |
The documentation for this struct was generated from the following file: