mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-25 23:25:41 +00:00
Fix outline strip vertex buffer
This commit is contained in:
@@ -376,17 +376,17 @@ VulkanDebugManager::VulkanDebugManager(WrappedVulkan *driver, VkDevice dev)
|
||||
|
||||
{
|
||||
float data[] = {
|
||||
0.0f, -1.0f, 0.0f, 1.0f,
|
||||
1.0f, -1.0f, 0.0f, 1.0f,
|
||||
|
||||
1.0f, -1.0f, 0.0f, 1.0f,
|
||||
1.0f, 0.0f, 0.0f, 1.0f,
|
||||
|
||||
1.0f, 0.0f, 0.0f, 1.0f,
|
||||
0.0f, 0.0f, 0.0f, 1.0f,
|
||||
1.0f, 0.0f, 0.0f, 1.0f,
|
||||
|
||||
0.0f, 0.1f, 0.0f, 1.0f,
|
||||
0.0f, -1.0f, 0.0f, 1.0f,
|
||||
1.0f, 0.0f, 0.0f, 1.0f,
|
||||
1.0f, 1.0f, 0.0f, 1.0f,
|
||||
|
||||
1.0f, 1.0f, 0.0f, 1.0f,
|
||||
0.0f, 1.0f, 0.0f, 1.0f,
|
||||
|
||||
0.0f, 1.0f, 0.0f, 1.0f,
|
||||
0.0f, -0.1f, 0.0f, 1.0f,
|
||||
};
|
||||
|
||||
m_OutlineStripVBO.Create(driver, dev, 128, 0);
|
||||
|
||||
@@ -949,7 +949,7 @@ void VulkanReplay::RenderHighlightBox(float w, float h, float scale)
|
||||
vt->CmdDraw(Unwrap(cmd), 8, 1, 0, 0);
|
||||
|
||||
genericuniforms secondOutline;
|
||||
secondOutline.Offset = Vec4f(-xpixdim, ypixdim, 0.0f, 0.0f);
|
||||
secondOutline.Offset = Vec4f(-xpixdim, -ypixdim, 0.0f, 0.0f);
|
||||
secondOutline.Scale = Vec4f(xdim+xpixdim*2, ydim+ypixdim*2, 1.0f, 1.0f);
|
||||
secondOutline.Color = Vec4f(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user