MCPcopy Create free account
hub / github.com/Snapchat/Valdi / appendDensity

Method appendDensity

valdi/src/valdi/runtime/Resources/AssetDensityResolver.cpp:16–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14AssetDensityResolver::~AssetDensityResolver() = default;
15
16void AssetDensityResolver::appendDensity(double density) {
17 _densities.emplace_back(density);
18}
19
20std::optional<size_t> AssetDensityResolver::select(double desiredDensity) const {
21 double bestDensity = 0;

Callers 2

findBestAssetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected