Preparations for unifying CopyDisplayToOutput

This commit is contained in:
Henrik Rydgard
2017-02-15 22:47:50 +01:00
parent 7652bc2d8b
commit cba37e54d0
9 changed files with 50 additions and 26 deletions
+11
View File
@@ -402,6 +402,17 @@ VulkanTexture *FramebufferManagerVulkan::MakePixelTexture(const u8 *srcPixels, G
return drawPixelsTex_;
}
void FramebufferManagerVulkan::SetViewport2D(int x, int y, int w, int h) {
VkViewport vp;
vp.minDepth = 0.0;
vp.maxDepth = 1.0;
vp.x = (float)x;
vp.y = (float)y;
vp.width = (float)w;
vp.height = (float)h;
vkCmdSetViewport(curCmd_, 0, 1, &vp);
}
void FramebufferManagerVulkan::DrawPixels(VirtualFramebuffer *vfb, int dstX, int dstY, const u8 *srcPixels, GEBufferFormat srcPixelFormat, int srcStride, int width, int height) {
VkViewport vp;
vp.minDepth = 0.0;