#include "src/gpu/graphite/dawn/DawnSampler.h"
#include "include/core/SkSamplingOptions.h"
#include "src/gpu/graphite/dawn/DawnCaps.h"
#include "src/gpu/graphite/dawn/DawnGraphiteUtilsPriv.h"
#include "src/gpu/graphite/dawn/DawnSharedContext.h"
#include <cfloat>
namespace skgpu::graphite {
namespace {
wgpu::FilterMode filter_mode_to_dawn_filter_mode(SkFilterMode mode) { … }
wgpu::MipmapFilterMode mipmap_mode_to_dawn_filter_mode(SkMipmapMode mode) { … }
}
DawnSampler::DawnSampler(const DawnSharedContext* sharedContext,
wgpu::Sampler sampler)
: … { … }
static inline wgpu::AddressMode tile_mode_to_dawn_address_mode(SkTileMode tileMode) { … }
#if !defined(__EMSCRIPTEN__)
namespace {
usingnamespaceycbcrUtils;
wgpu::YCbCrVkDescriptor get_descriptor_from_sampler_desc(const SamplerDesc& samplerDesc) { … }
}
#endif
sk_sp<DawnSampler> DawnSampler::Make(const DawnSharedContext* sharedContext,
const SamplerDesc& samplerDesc) { … }
void DawnSampler::freeGpuData() { … }
}