Lines Matching refs:GrSamplerState
18 class GrSamplerState {
34 constexpr GrSamplerState() = default;
36 constexpr GrSamplerState(WrapMode wrapXAndY, Filter filter, MipmapMode mm = MipmapMode::kNone)
39 constexpr GrSamplerState(WrapMode wrapX,
45 constexpr GrSamplerState(const WrapMode wrapModes[2],
50 constexpr /*explicit*/ GrSamplerState(Filter filter) : fFilter(filter) {} in GrSamplerState() function
51 constexpr GrSamplerState(Filter filter, MipmapMode mm) : fFilter(filter), fMipmapMode(mm) {} in GrSamplerState() function
53 constexpr GrSamplerState(const GrSamplerState&) = default;
55 constexpr GrSamplerState& operator=(const GrSamplerState&) = default;
89 constexpr bool operator==(GrSamplerState that) const {
94 constexpr bool operator!=(const GrSamplerState& that) const { return !(*this == that); }
117 Filter fFilter = GrSamplerState::Filter::kNearest;
118 MipmapMode fMipmapMode = GrSamplerState::MipmapMode::kNone;
121 static_assert(GrSamplerState::kNumUniqueSamplers <=
122 std::numeric_limits<decltype(GrSamplerState{}.asIndex())>::max());