mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Vulkan: Add EndFrame to texture cache.
This commit is contained in:
1 parent
3352608027
commit
ed41785692
3 files changed
+11
-6
No files matched your search
@@ -564,15 +564,10 @@ void TextureCacheVulkan::SetFramebufferSamplingParams(u16 bufferWidth, u16 buffe
|
||||
}
|
||||
|
||||
void TextureCacheVulkan::StartFrame() {
|
||||
// TODO: Better place?
|
||||
allocator_->End();
|
||||
lastBoundTexture = nullptr;
|
||||
timesInvalidatedAllThisFrame_ = 0;
|
||||
|
||||
if (texelsScaledThisFrame_) {
|
||||
// INFO_LOG(G3D, "Scaled %i texels", texelsScaledThisFrame_);
|
||||
}
|
||||
texelsScaledThisFrame_ = 0;
|
||||
|
||||
if (clearCacheNextFrame_) {
|
||||
Clear(true);
|
||||
clearCacheNextFrame_ = false;
|
||||
@@ -583,6 +578,14 @@ void TextureCacheVulkan::StartFrame() {
|
||||
allocator_->Begin();
|
||||
}
|
||||
|
||||
void TextureCacheVulkan::EndFrame() {
|
||||
allocator_->End();
|
||||
|
||||
if (texelsScaledThisFrame_) {
|
||||
// INFO_LOG(G3D, "Scaled %i texels", texelsScaledThisFrame_);
|
||||
}
|
||||
}
|
||||
|
||||
static inline u32 MiniHash(const u32 *ptr) {
|
||||
return ptr[0];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user