Unify the "BindSampler" function between the backends

This commit is contained in:
Henrik Rydgård committed 2026-07-16 17:45:22 +02:00
1 parent 306f3dec92
commit 2e012b8966
8 files changed
+9 -27

No files matched your search

+7
View File
@@ -2693,6 +2693,13 @@ void TextureCacheCommon::DeleteTexture(TexCache::iterator it) {
cache_.erase(it);
}
void TextureCacheCommon::BindSampler(TexCacheEntry *entry, bool flatZ) {
_dbg_assert_(entry);
int maxLevel = (entry->status & TexStatus::NO_MIPS) ? 0 : entry->maxLevel;
SamplerCacheKey samplerKey = GetSamplingParams(maxLevel, entry, flatZ);
ApplySamplingParams(samplerKey);
}
bool TextureCacheCommon::CheckFullHash(TexCacheEntry *entry, bool &doDelete) {
int w = gstate.getTextureWidth(0);
int h = gstate.getTextureHeight(0);