Lines Matching refs:GrSamplerState
17 GrSamplerState::WrapMode wrapMode, const GrCaps& caps) {
19 case GrSamplerState::WrapMode::kClamp:
21 case GrSamplerState::WrapMode::kRepeat:
23 case GrSamplerState::WrapMode::kMirrorRepeat:
25 case GrSamplerState::WrapMode::kClampToBorder:
39 GrMtlSampler* GrMtlSampler::Create(const GrMtlGpu* gpu, const GrSamplerState& samplerState,
47 GR_STATIC_ASSERT((int)GrSamplerState::Filter::kNearest == 0);
48 GR_STATIC_ASSERT((int)GrSamplerState::Filter::kBilerp == 1);
49 GR_STATIC_ASSERT((int)GrSamplerState::Filter::kMipMap == 2);
61 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter() && maxMipLevel > 0;
71 GrMtlSampler::Key GrMtlSampler::GenerateKey(const GrSamplerState& samplerState,
86 bool useMipMaps = GrSamplerState::Filter::kMipMap == samplerState.filter() && maxMipLevel > 0;