Start work on separating frame from backbuffer renderpass

This commit is contained in:
Henrik Rydgård
2017-05-30 09:36:17 +02:00
parent 4407445d50
commit 3b6fa9be87
5 changed files with 40 additions and 34 deletions
+4 -4
View File
@@ -444,10 +444,10 @@ void FramebufferManagerVulkan::DrawTexture(VulkanTexture *texture, float x, floa
}
Vulkan2D::Vertex vtx[4] = {
{x,y,0,texCoords[0],texCoords[1]},
{x + w,y,0,texCoords[2],texCoords[3]},
{x,y + h,0,texCoords[6],texCoords[7] },
{x + w,y + h,0,texCoords[4],texCoords[5] },
{x,y, 0,texCoords[0],texCoords[1]},
{x + w,y, 0,texCoords[2],texCoords[3]},
{x,y + h, 0,texCoords[6],texCoords[7] },
{x + w,y + h, 0,texCoords[4],texCoords[5] },
};
float invDestW = 1.0f / (destW * 0.5f);