5#ifndef FLUTTER_IMPELLER_CORE_SAMPLER_DESCRIPTOR_H_
6#define FLUTTER_IMPELLER_CORE_SAMPLER_DESCRIPTOR_H_
23 std::string_view
label =
"NN Clamp Sampler";
37 return static_cast<uint64_t
>(
d.min_filter) << 0 |
38 static_cast<uint64_t
>(
d.mag_filter) << 8 |
39 static_cast<uint64_t
>(
d.mip_filter) << 16 |
40 static_cast<uint64_t
>(
d.width_address_mode) << 24 |
41 static_cast<uint64_t
>(
d.height_address_mode) << 32 |
42 static_cast<uint64_t
>(
d.depth_address_mode) << 40;
MipFilter
Options for selecting and filtering between mipmap levels.
@ kNearest
The nearst mipmap level is selected.
MinMagFilter
Describes how the texture should be sampled when the texture is being shrunk (minified) or expanded (...
@ kNearest
Select nearest to the sample point. Most widely supported.
SamplerAddressMode depth_address_mode
SamplerAddressMode width_address_mode
SamplerAddressMode height_address_mode
static uint64_t ToKey(const SamplerDescriptor &d)