mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
Remove VkAttachmentBindInfo
This commit is contained in:
@@ -2208,15 +2208,6 @@ void Serialiser::Serialise(const char *name, VkImageViewCreateInfo &el)
|
||||
Serialise("subresourceRange", el.subresourceRange);
|
||||
}
|
||||
|
||||
template<>
|
||||
void Serialiser::Serialise(const char *name, VkAttachmentBindInfo &el)
|
||||
{
|
||||
ScopedContext scope(this, name, "VkAttachmentBindInfo", 0, true);
|
||||
|
||||
SerialiseObject(VkAttachmentView, "view", el.view);
|
||||
Serialise("layout", el.layout);
|
||||
}
|
||||
|
||||
template<>
|
||||
void Serialiser::Serialise(const char *name, VkFramebufferCreateInfo &el)
|
||||
{
|
||||
@@ -2227,10 +2218,20 @@ void Serialiser::Serialise(const char *name, VkFramebufferCreateInfo &el)
|
||||
SerialiseNext(this, el.pNext);
|
||||
|
||||
SerialiseObject(VkRenderPass, "renderPass", el.renderPass);
|
||||
SerialiseComplexArray("pAttachments", (VkAttachmentBindInfo *&)el.pAttachments, el.attachmentCount);
|
||||
Serialise("width", el.width);
|
||||
Serialise("height", el.height);
|
||||
Serialise("layers", el.layers);
|
||||
|
||||
// do this one by hand because it's an array of objects that aren't Serialise
|
||||
// overloaded
|
||||
Serialise("attachmentCount", el.attachmentCount);
|
||||
|
||||
if(m_Mode == READING)
|
||||
el.pAttachments = el.attachmentCount ? new VkImageView[el.attachmentCount] : NULL;
|
||||
|
||||
VkImageView *attaches = (VkImageView *)el.pAttachments;
|
||||
for(uint32_t i=0; i < el.attachmentCount; i++)
|
||||
SerialiseObject(VkImageView, "pAttachments", attaches[i]);
|
||||
}
|
||||
|
||||
template<>
|
||||
|
||||
@@ -84,7 +84,6 @@ template<> void Serialiser::Serialise(const char *name, VkBufferCreateInfo &el);
|
||||
template<> void Serialiser::Serialise(const char *name, VkBufferViewCreateInfo &el);
|
||||
template<> void Serialiser::Serialise(const char *name, VkImageCreateInfo &el);
|
||||
template<> void Serialiser::Serialise(const char *name, VkImageViewCreateInfo &el);
|
||||
template<> void Serialiser::Serialise(const char *name, VkAttachmentBindInfo &el);
|
||||
template<> void Serialiser::Serialise(const char *name, VkFramebufferCreateInfo &el);
|
||||
template<> void Serialiser::Serialise(const char *name, VkRenderPassCreateInfo &el);
|
||||
template<> void Serialiser::Serialise(const char *name, VkRenderPassBeginInfo &el);
|
||||
|
||||
@@ -382,12 +382,10 @@ void VulkanReplay::OutputWindow::Create(WrappedVulkan *driver, VkDevice device,
|
||||
|
||||
VKMGR()->WrapResource(Unwrap(device), bbview);
|
||||
|
||||
VkAttachmentBindInfo attBind = { Unwrap(bbview), VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL };
|
||||
|
||||
VkFramebufferCreateInfo fbinfo = {
|
||||
VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO, NULL,
|
||||
Unwrap(renderpass),
|
||||
1, &attBind,
|
||||
1, UnwrapPtr(bbview),
|
||||
(uint32_t)width, (uint32_t)height, 1,
|
||||
};
|
||||
|
||||
|
||||
@@ -516,12 +516,9 @@ VkResult WrappedVulkan::vkCreateFramebuffer(
|
||||
const VkFramebufferCreateInfo* pCreateInfo,
|
||||
VkFramebuffer* pFramebuffer)
|
||||
{
|
||||
VkAttachmentBindInfo *unwrapped = GetTempArray<VkAttachmentBindInfo>(pCreateInfo->attachmentCount);
|
||||
VkImageView *unwrapped = GetTempArray<VkImageView>(pCreateInfo->attachmentCount);
|
||||
for(uint32_t i=0; i < pCreateInfo->attachmentCount; i++)
|
||||
{
|
||||
unwrapped[i] = pCreateInfo->pAttachments[i];
|
||||
unwrapped[i].view = Unwrap(unwrapped[i].view);
|
||||
}
|
||||
unwrapped[i] = Unwrap(pCreateInfo->pAttachments[i]);
|
||||
|
||||
VkFramebufferCreateInfo unwrappedInfo = *pCreateInfo;
|
||||
unwrappedInfo.renderPass = Unwrap(unwrappedInfo.renderPass);
|
||||
|
||||
@@ -440,12 +440,10 @@ VkResult WrappedVulkan::vkCreateSwapChainWSI(
|
||||
|
||||
GetResourceManager()->WrapResource(Unwrap(device), swapImInfo.view);
|
||||
|
||||
VkAttachmentBindInfo attBind = { Unwrap(swapImInfo.view), VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL };
|
||||
|
||||
VkFramebufferCreateInfo fbinfo = {
|
||||
VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO, NULL,
|
||||
Unwrap(swapInfo.rp),
|
||||
1, &attBind,
|
||||
1, UnwrapPtr(swapImInfo.view),
|
||||
(uint32_t)pCreateInfo->imageExtent.width, (uint32_t)pCreateInfo->imageExtent.height, 1,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user