14 SamplerLibraryGLES::SamplerLibraryGLES(
bool supports_decal_sampler_address_mode)
15 : supports_decal_sampler_address_mode_(
16 supports_decal_sampler_address_mode) {}
22 std::shared_ptr<const Sampler> SamplerLibraryGLES::GetSampler(
24 if (!supports_decal_sampler_address_mode_ &&
28 VALIDATION_LOG <<
"SamplerAddressMode::kDecal is not supported by the "
29 "current OpenGLES backend.";
33 auto found = samplers_.find(descriptor);
34 if (found != samplers_.end()) {
37 return samplers_[descriptor] =
38 std::shared_ptr<SamplerGLES>(
new SamplerGLES(descriptor));