16SamplerLibraryGLES::SamplerLibraryGLES(
bool supports_decal_sampler_address_mode)
17 : supports_decal_sampler_address_mode_(
18 supports_decal_sampler_address_mode) {}
24const std::unique_ptr<const Sampler>& SamplerLibraryGLES::GetSampler(
26 if (!supports_decal_sampler_address_mode_ &&
30 VALIDATION_LOG <<
"SamplerAddressMode::kDecal is not supported by the "
31 "current OpenGLES backend.";
35 auto found = samplers_.find(descriptor);
36 if (found != samplers_.end()) {
39 return (samplers_[descriptor] =
40 std::unique_ptr<SamplerGLES>(
new SamplerGLES(descriptor)));
~SamplerLibraryGLES() override
@ kDecal
decal sampling mode is only supported on devices that pass the Capabilities.SupportsDecalSamplerAddre...
static const std::unique_ptr< const Sampler > kNullSampler
SamplerAddressMode depth_address_mode
SamplerAddressMode width_address_mode
SamplerAddressMode height_address_mode