15 SamplerLibraryGLES::SamplerLibraryGLES(
bool supports_decal_sampler_address_mode)
16 : supports_decal_sampler_address_mode_(
17 supports_decal_sampler_address_mode) {}
25 if (!supports_decal_sampler_address_mode_ &&
29 VALIDATION_LOG <<
"SamplerAddressMode::kDecal is not supported by the "
30 "current OpenGLES backend.";
34 for (
const auto& [key,
value] : samplers_) {
36 return raw_ptr(
value);
41 auto sampler = std::unique_ptr<SamplerGLES>(
new SamplerGLES(descriptor));
42 samplers_.push_back(std::make_pair(p_key, std::move(sampler)));
44 return raw_ptr(samplers_.back().second);
~SamplerLibraryGLES() override
A wrapper around a raw ptr that adds additional unopt mode only checks.
@ kDecal
decal sampling mode is only supported on devices that pass the Capabilities.SupportsDecalSamplerAddre...
SamplerAddressMode depth_address_mode
SamplerAddressMode width_address_mode
SamplerAddressMode height_address_mode
static uint64_t ToKey(const SamplerDescriptor &d)