From 41e5a5404dd18c748a8355c0796d5e53f793c3b9 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 21 Nov 2018 10:01:10 -0800 Subject: Implemented explicit resource state transitions --- Tests/TestApp/src/TestCreateObjFromNativeResVK.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tests/TestApp/src/TestCreateObjFromNativeResVK.cpp') diff --git a/Tests/TestApp/src/TestCreateObjFromNativeResVK.cpp b/Tests/TestApp/src/TestCreateObjFromNativeResVK.cpp index 37d295a..a3113f8 100644 --- a/Tests/TestApp/src/TestCreateObjFromNativeResVK.cpp +++ b/Tests/TestApp/src/TestCreateObjFromNativeResVK.cpp @@ -47,7 +47,7 @@ void TestCreateObjFromNativeResVK::CreateTexture(Diligent::ITexture *pTexture) RefCntAutoPtr pTextureVk(pTexture, IID_TextureVk); auto VkHandle = pTextureVk->GetVkImage(); RefCntAutoPtr pAttachedTexture; - pDeviceVk->CreateTextureFromVulkanImage(VkHandle, SrcTexDesc, &pAttachedTexture); + pDeviceVk->CreateTextureFromVulkanImage(VkHandle, SrcTexDesc, RESOURCE_STATE_UNKNOWN, &pAttachedTexture); ++m_NumTexturesCreated; const auto& TestTexDesc = pAttachedTexture->GetDesc(); @@ -67,7 +67,7 @@ void TestCreateObjFromNativeResVK::CreateBuffer(Diligent::IBuffer *pBuffer) auto VkBufferHandle = pBufferVk->GetVkBuffer(); RefCntAutoPtr pBufferFromNativeVkHandle; - pDeviceVk->CreateBufferFromVulkanResource(VkBufferHandle, SrcBuffDesc, &pBufferFromNativeVkHandle); + pDeviceVk->CreateBufferFromVulkanResource(VkBufferHandle, SrcBuffDesc, RESOURCE_STATE_UNKNOWN, &pBufferFromNativeVkHandle); ++m_NumBuffersCreated; const auto &TestBufferDesc = pBufferFromNativeVkHandle->GetDesc(); -- cgit v1.2.3