Lines Matching refs:WrapMode
23 enum class WrapMode : uint8_t { enum
32 inline static constexpr int kWrapModeCount = static_cast<int>(WrapMode::kLast) + 1;
36 constexpr GrSamplerState(WrapMode wrapXAndY, Filter filter, MipmapMode mm = MipmapMode::kNone)
39 constexpr GrSamplerState(WrapMode wrapX,
40 WrapMode wrapY,
45 constexpr GrSamplerState(const WrapMode wrapModes[2],
57 constexpr WrapMode wrapModeX() const { return fWrapModes[0]; } in wrapModeX()
59 constexpr WrapMode wrapModeY() const { return fWrapModes[1]; } in wrapModeY()
62 return fWrapModes[0] == WrapMode::kRepeat || fWrapModes[0] == WrapMode::kMirrorRepeat; in isRepeatedX()
66 return fWrapModes[1] == WrapMode::kRepeat || fWrapModes[1] == WrapMode::kMirrorRepeat; in isRepeatedY()
85 constexpr void setWrapModeX(const WrapMode wrap) { fWrapModes[0] = wrap; } in setWrapModeX()
87 constexpr void setWrapModeY(const WrapMode wrap) { fWrapModes[1] = wrap; } in setWrapModeY()
101 constexpr int kNumWraps = static_cast<int>(WrapMode::kLast) + 1; in asIndex()
111 inline static constexpr int kNumUniqueSamplers = (static_cast<int>(WrapMode::kLast ) + 1)
112 * (static_cast<int>(WrapMode::kLast ) + 1)
116 WrapMode fWrapModes[2] = {WrapMode::kClamp, WrapMode::kClamp};