Flutter Engine
The Flutter Engine
|
#include <GrSamplerState.h>
Public Types | |
enum class | WrapMode : uint8_t { kClamp , kRepeat , kMirrorRepeat , kClampToBorder , kLast = kClampToBorder } |
using | Filter = SkFilterMode |
using | MipmapMode = SkMipmapMode |
Public Member Functions | |
constexpr | GrSamplerState ()=default |
constexpr | GrSamplerState (WrapMode wrapXAndY, Filter filter, MipmapMode mm=MipmapMode::kNone) |
constexpr | GrSamplerState (WrapMode wrapX, WrapMode wrapY, Filter filter, MipmapMode mm=MipmapMode::kNone) |
constexpr | GrSamplerState (const WrapMode wrapModes[2], Filter filter, MipmapMode mm=MipmapMode::kNone) |
constexpr | GrSamplerState (Filter filter) |
constexpr | GrSamplerState (Filter filter, MipmapMode mm) |
constexpr | GrSamplerState (const GrSamplerState &)=default |
constexpr GrSamplerState & | operator= (const GrSamplerState &)=default |
constexpr WrapMode | wrapModeX () const |
constexpr WrapMode | wrapModeY () const |
constexpr bool | isRepeatedX () const |
constexpr bool | isRepeatedY () const |
constexpr bool | isRepeated () const |
constexpr Filter | filter () const |
constexpr MipmapMode | mipmapMode () const |
constexpr skgpu::Mipmapped | mipmapped () const |
int | maxAniso () const |
bool | isAniso () const |
constexpr bool | operator== (GrSamplerState that) const |
constexpr bool | operator!= (const GrSamplerState &that) const |
uint32_t | asKey (bool anisoIsOrthogonal) const |
Static Public Member Functions | |
static constexpr GrSamplerState | Aniso (WrapMode wrapX, WrapMode wrapY, int maxAniso, skgpu::Mipmapped viewIsMipped) |
Static Public Attributes | |
static constexpr int | kFilterCount = static_cast<int>(Filter::kLast) + 1 |
static constexpr int | kWrapModeCount = static_cast<int>(WrapMode::kLast) + 1 |
static constexpr int | kMipmapModeCount = static_cast<int>(MipmapMode::kLast) + 1 |
Represents the filtering and tile modes used to access a texture.
Definition at line 22 of file GrSamplerState.h.
using GrSamplerState::Filter = SkFilterMode |
Definition at line 24 of file GrSamplerState.h.
Definition at line 25 of file GrSamplerState.h.
|
strong |
Enumerator | |
---|---|
kClamp | |
kRepeat | |
kMirrorRepeat | |
kClampToBorder | |
kLast |
Definition at line 27 of file GrSamplerState.h.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 41 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 44 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 50 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 55 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 56 of file GrSamplerState.h.
|
constexprdefault |
|
inlinestaticconstexpr |
Definition at line 60 of file GrSamplerState.h.
|
inline |
Turn the sampler state into an integer for use as a key. How that works for aniso depends on whether the underlying API defines aniso as orthogonal to other filter settings or as a replacement for them.
Definition at line 117 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 94 of file GrSamplerState.h.
|
inline |
Definition at line 103 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 90 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 82 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 86 of file GrSamplerState.h.
|
inline |
Definition at line 102 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 96 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 98 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 110 of file GrSamplerState.h.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 105 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 78 of file GrSamplerState.h.
|
inlineconstexpr |
Definition at line 80 of file GrSamplerState.h.
|
staticconstexpr |
Definition at line 35 of file GrSamplerState.h.
|
staticconstexpr |
Definition at line 37 of file GrSamplerState.h.
|
staticconstexpr |
Definition at line 36 of file GrSamplerState.h.