#include <sampler_gles.h>
Definition at line 17 of file sampler_gles.h.
◆ ~SamplerGLES()
| impeller::SamplerGLES::~SamplerGLES |
( |
| ) |
|
|
default |
◆ ConfigureBoundTexture()
Definition at line 70 of file sampler_gles.cc.
76 if (texture.NeedsMipmapGeneration()) {
78 <<
"Texture mip count is > 1, but the mipmap has not been generated. "
79 "Texture can not be sampled safely.";
85 if (!target.has_value()) {
90 std::optional<MipFilter> mip_filter = std::nullopt;
91 if (texture.GetTextureDescriptor().mip_count > 1) {
92 mip_filter = desc.mip_filter;
95 gl.TexParameteri(target.value(), GL_TEXTURE_MIN_FILTER,
96 ToParam(desc.min_filter, mip_filter));
97 gl.TexParameteri(target.value(), GL_TEXTURE_MAG_FILTER,
99 gl.TexParameteri(target.value(), GL_TEXTURE_WRAP_S,
101 gl.TexParameteri(target.value(), GL_TEXTURE_WRAP_T,
References impeller::Sampler::GetDescriptor(), impeller::Texture::GetTextureDescriptor(), impeller::TextureDescriptor::mip_count, impeller::Texture::NeedsMipmapGeneration(), impeller::ToAddressMode(), impeller::ToParam(), impeller::ToTextureTarget(), impeller::TextureDescriptor::type, and VALIDATION_LOG.
◆ SamplerLibraryGLES
The documentation for this class was generated from the following files: