Switch to a returned value and rename these functions.

This commit is contained in:
Henrik Rydgård committed 2020-09-14 00:04:39 +02:00
1 parent 5190f85c8e
commit a222b2017e
6 files changed
+34 -37

No files matched your search

+3 -5
View File
@@ -516,10 +516,9 @@ void TextureCacheVulkan::BindTexture(TexCacheEntry *entry) {
entry->vkTex->Touch();
imageView_ = entry->vkTex->GetImageView();
SamplerCacheKey key{};
int maxLevel = (entry->status & TexCacheEntry::STATUS_BAD_MIPS) ? 0 : entry->maxLevel;
UpdateSamplingParams(maxLevel, entry->addr, key);
curSampler_ = samplerCache_.GetOrCreateSampler(key);
SamplerCacheKey samplerKey = GetSamplingParams(maxLevel, entry->addr);
curSampler_ = samplerCache_.GetOrCreateSampler(samplerKey);
drawEngine_->SetDepalTexture(VK_NULL_HANDLE);
gstate_c.SetUseShaderDepal(false);
}
@@ -531,8 +530,7 @@ void TextureCacheVulkan::Unbind() {
}
void TextureCacheVulkan::ApplyTextureFramebuffer(VirtualFramebuffer *framebuffer, GETextureFormat texFormat, FramebufferNotificationChannel channel) {
SamplerCacheKey samplerKey{};
SetFramebufferSamplingParams(framebuffer->bufferWidth, framebuffer->bufferHeight, samplerKey);
SamplerCacheKey samplerKey = GetFramebufferSamplingParams(framebuffer->bufferWidth, framebuffer->bufferHeight);
DepalShaderVulkan *depalShader = nullptr;
uint32_t clutMode = gstate.clutformat & 0xFFFFFF;