mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 10:49:05 +02:00
Vulkan: Actually call the new lost/restore funcs.
This commit is contained in:
1 parent
a6ff7c6711
commit
40e2ab1d12
1 file changed
+16
-2
@@ -1945,11 +1945,25 @@ void GPU_Vulkan::FastLoadBoneMatrix(u32 target) {
|
||||
}
|
||||
|
||||
void GPU_Vulkan::DeviceLost() {
|
||||
// TODO
|
||||
framebufferManager_->DeviceLost();
|
||||
drawEngine_.DeviceLost();
|
||||
pipelineManager_->DeviceLost();
|
||||
textureCache_.DeviceLost();
|
||||
depalShaderCache_.Clear();
|
||||
shaderManager_->ClearShaders();
|
||||
}
|
||||
|
||||
void GPU_Vulkan::DeviceRestore() {
|
||||
// TODO
|
||||
vulkan_ = (VulkanContext *)PSP_CoreParameter().graphicsContext->GetAPIContext();
|
||||
CheckGPUFeatures();
|
||||
BuildReportingInfo();
|
||||
UpdateCmdInfo();
|
||||
|
||||
framebufferManager_->DeviceRestore(vulkan_);
|
||||
drawEngine_.DeviceRestore(vulkan_);
|
||||
pipelineManager_->DeviceRestore(vulkan_);
|
||||
textureCache_.DeviceRestore(vulkan_);
|
||||
shaderManager_->DeviceRestore(vulkan_);
|
||||
}
|
||||
|
||||
void GPU_Vulkan::GetStats(char *buffer, size_t bufsize) {
|
||||
|
||||
Reference in new issue
Block a user