Serialise out sharing mode for swapchain images, replay that on fakes

This commit is contained in:
baldurk
2016-03-08 00:05:51 +01:00
parent 77b7748f3b
commit 17a9ae008a
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ struct VkInitParams : public RDCInitParams
void Set(const VkInstanceCreateInfo* pCreateInfo, ResourceId inst);
static const uint32_t VK_SERIALISE_VERSION = 0x0000002;
static const uint32_t VK_SERIALISE_VERSION = 0x0000003;
// version number internal to vulkan stream
uint32_t SerialiseVersion;
@@ -190,6 +190,7 @@ bool WrappedVulkan::Serialise_vkCreateSwapchainKHR(
}
SERIALISE_ELEMENT(uint32_t, numSwapImages, numIms);
SERIALISE_ELEMENT(VkSharingMode, sharingMode, pCreateInfo->imageSharingMode);
if(m_State == READING)
{
@@ -214,7 +215,7 @@ bool WrappedVulkan::Serialise_vkCreateSwapchainKHR(
VK_IMAGE_USAGE_TRANSFER_DST_BIT|
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT|
VK_IMAGE_USAGE_SAMPLED_BIT,
VK_SHARING_MODE_CONCURRENT, 0, NULL,
sharingMode, 0, NULL,
VK_IMAGE_LAYOUT_UNDEFINED,
};