summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/src/TestCreateObjFromNativeResVK.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-11-21 18:01:10 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-11-21 18:01:10 +0000
commit41e5a5404dd18c748a8355c0796d5e53f793c3b9 (patch)
tree58af8fabc3132d1edce8248ae5f5eaf53bbd6f42 /Tests/TestApp/src/TestCreateObjFromNativeResVK.cpp
parentFixed release history (diff)
downloadDiligentEngine-41e5a5404dd18c748a8355c0796d5e53f793c3b9.tar.gz
DiligentEngine-41e5a5404dd18c748a8355c0796d5e53f793c3b9.zip
Implemented explicit resource state transitions
Diffstat (limited to 'Tests/TestApp/src/TestCreateObjFromNativeResVK.cpp')
-rw-r--r--Tests/TestApp/src/TestCreateObjFromNativeResVK.cpp4
1 files changed, 2 insertions, 2 deletions
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<ITextureVk> pTextureVk(pTexture, IID_TextureVk);
auto VkHandle = pTextureVk->GetVkImage();
RefCntAutoPtr<ITexture> 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<IBuffer> pBufferFromNativeVkHandle;
- pDeviceVk->CreateBufferFromVulkanResource(VkBufferHandle, SrcBuffDesc, &pBufferFromNativeVkHandle);
+ pDeviceVk->CreateBufferFromVulkanResource(VkBufferHandle, SrcBuffDesc, RESOURCE_STATE_UNKNOWN, &pBufferFromNativeVkHandle);
++m_NumBuffersCreated;
const auto &TestBufferDesc = pBufferFromNativeVkHandle->GetDesc();