2016-01-03 23:09:37 +01:00
|
|
|
// Copyright (c) 2015- PPSSPP Project.
|
|
|
|
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, version 2.0 or later versions.
|
|
|
|
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
|
|
|
|
// Official git repository and contact information can be found at
|
|
|
|
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2016-01-05 21:18:43 +01:00
|
|
|
#include "GPU/GPUInterface.h"
|
2016-01-05 22:55:47 +01:00
|
|
|
#include "GPU/GPUState.h"
|
2016-01-03 23:09:37 +01:00
|
|
|
#include "GPU/Vulkan/FramebufferVulkan.h"
|
2016-01-05 22:55:47 +01:00
|
|
|
#include "GPU/Vulkan/DrawEngineVulkan.h"
|
|
|
|
|
2016-01-03 23:09:37 +01:00
|
|
|
|
2016-01-05 21:18:43 +01:00
|
|
|
|
2016-01-03 23:09:37 +01:00
|
|
|
VulkanFramebuffer *FramebufferManagerVulkan::GetTempFBO(int width, int height, VulkanFBOColorDepth colorDepth) {
|
|
|
|
return nullptr;
|
|
|
|
}
|
2016-01-05 21:18:43 +01:00
|
|
|
|
|
|
|
void FramebufferManagerVulkan::DestroyAllFBOs() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void FramebufferManagerVulkan::Resized() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void FramebufferManagerVulkan::DeviceLost() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void FramebufferManagerVulkan::CopyDisplayToOutput() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-01-05 22:55:47 +01:00
|
|
|
void FramebufferManagerVulkan::DecimateFBOs() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-01-05 21:18:43 +01:00
|
|
|
void FramebufferManagerVulkan::EndFrame() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-01-05 22:55:47 +01:00
|
|
|
void FramebufferManagerVulkan::DrawPixels(VirtualFramebuffer *vfb, int dstX, int dstY, const u8 *srcPixels, GEBufferFormat srcPixelFormat, int srcStride, int width, int height) {
|
|
|
|
// So: Allocate a temporary texture from a (very small) pool, upload content directly into it, schedule a transition
|
|
|
|
// into the init command buffer, alloc and create an appropriate descriptor set, then bind and draw. no need for uniforms.
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void FramebufferManagerVulkan::FlushBeforeCopy() {
|
|
|
|
// Flush anything not yet drawn before blitting, downloading, or uploading.
|
|
|
|
// This might be a stalled list, or unflushed before a block transfer, etc.
|
|
|
|
|
|
|
|
// TODO: It's really bad that we are calling SetRenderFramebuffer here with
|
|
|
|
// all the irrelevant state checking it'll use to decide what to do. Should
|
|
|
|
// do something more focused here.
|
|
|
|
SetRenderFrameBuffer(gstate_c.framebufChanged, gstate_c.skipDrawReason);
|
|
|
|
drawEngine_->Flush(nullptr);
|
|
|
|
}
|
|
|
|
|
2016-01-06 23:08:26 +01:00
|
|
|
void FramebufferManagerVulkan::ReadFramebufferToMemory(VirtualFramebuffer *vfb, bool sync, int x, int y, int w, int h) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void FramebufferManagerVulkan::DownloadFramebufferForClut(u32 fb_address, u32 loadBytes) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
bool FramebufferManagerVulkan::CreateDownloadTempBuffer(VirtualFramebuffer *nvfb) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void FramebufferManagerVulkan::UpdateDownloadTempBuffer(VirtualFramebuffer *nvfb) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-01-05 21:18:43 +01:00
|
|
|
std::vector<FramebufferInfo> FramebufferManagerVulkan::GetFramebufferList() {
|
|
|
|
return std::vector<FramebufferInfo>();
|
|
|
|
}
|