Pass subpass through to UI

This commit is contained in:
baldurk committed 2017-11-21 19:10:31 +00:00
1 parent f65d93cd68
commit 46a79135b2
3 files changed
+8 -3

No files matched your search

+3
View File
@@ -426,6 +426,9 @@ struct RenderPass
DOCUMENT("The :class:`ResourceId` of the render pass.");
ResourceId obj;
DOCUMENT("The index of the current active subpass.");
uint32_t subpass;
// VKTODOMED renderpass and subpass information here
DOCUMENT("A list of indices into the framebuffer attachments for input attachments.");
+1
View File
@@ -3090,6 +3090,7 @@ void VulkanReplay::SavePipelineState()
{
// Renderpass
m_VulkanPipelineState.Pass.renderpass.obj = rm->GetOriginalID(state.renderPass);
m_VulkanPipelineState.Pass.renderpass.subpass = state.subpass;
if(state.renderPass != ResourceId())
{
m_VulkanPipelineState.Pass.renderpass.inputAttachments =
+4 -3
View File
@@ -2072,12 +2072,13 @@ template <typename SerialiserType>
void DoSerialise(SerialiserType &ser, VKPipe::RenderPass &el)
{
SERIALISE_MEMBER(obj);
SERIALISE_MEMBER(subpass);
SERIALISE_MEMBER(inputAttachments);
SERIALISE_MEMBER(colorAttachments);
SERIALISE_MEMBER(resolveAttachments);
SERIALISE_MEMBER(depthstencilAttachment);
SIZE_CHECK(64);
SIZE_CHECK(72);
}
template <typename SerialiserType>
@@ -2127,7 +2128,7 @@ void DoSerialise(SerialiserType &ser, VKPipe::CurrentPass &el)
SERIALISE_MEMBER(framebuffer);
SERIALISE_MEMBER(renderArea);
SIZE_CHECK(120);
SIZE_CHECK(128);
}
template <typename SerialiserType>
@@ -2178,7 +2179,7 @@ void DoSerialise(SerialiserType &ser, VKPipe::State &el)
SERIALISE_MEMBER(images);
SIZE_CHECK(1280);
SIZE_CHECK(1288);
}
#pragma endregion Vulkan pipeline state