From 57b27983564952bee0100dcce350361aa32c9494 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 26 Aug 2018 17:09:03 -0700 Subject: Updated core & tools (implemented raw buffers plus other improvements) --- Tests/TestApp/src/TestCreateObjFromNativeResD3D11.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tests/TestApp/src/TestCreateObjFromNativeResD3D11.cpp') diff --git a/Tests/TestApp/src/TestCreateObjFromNativeResD3D11.cpp b/Tests/TestApp/src/TestCreateObjFromNativeResD3D11.cpp index cd985a1..782ca08 100644 --- a/Tests/TestApp/src/TestCreateObjFromNativeResD3D11.cpp +++ b/Tests/TestApp/src/TestCreateObjFromNativeResD3D11.cpp @@ -49,7 +49,7 @@ void TestCreateObjFromNativeResD3D11::CreateTexture(Diligent::ITexture *pTexture pDeviceD3D11->CreateTextureFromD3DResource(static_cast(pd3d11Texture), &pTextureFromNativeD3D11Handle); ++m_NumTexturesCreated; } - else if (RESOURCE_DIM_TEX_3D) + else if (SrcTexDesc.Type == RESOURCE_DIM_TEX_3D) { pDeviceD3D11->CreateTextureFromD3DResource(static_cast(pd3d11Texture), &pTextureFromNativeD3D11Handle); ++m_NumTexturesCreated; @@ -94,7 +94,7 @@ void TestCreateObjFromNativeResD3D11::CreateBuffer(Diligent::IBuffer *pBuffer) { BufferDesc BuffDesc; BuffDesc.Name = "Test buffer from D3D11 buffer"; - BuffDesc.Format = SrcBuffDesc.Format; + BuffDesc.ElementByteStride = SrcBuffDesc.ElementByteStride; RefCntAutoPtr pBufferFromNativeD3D11Handle; pDeviceD3D11->CreateBufferFromD3DResource(pd3d11Buffer, BuffDesc, &pBufferFromNativeD3D11Handle); ++m_NumBuffersCreated; -- cgit v1.2.3