diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-08-27 00:09:03 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-08-27 00:09:03 +0000 |
| commit | 57b27983564952bee0100dcce350361aa32c9494 (patch) | |
| tree | 99b7ff2a9464ad236578ea725bd7b1b8d858099a /Tests/TestApp/src/TestCreateObjFromNativeResD3D11.cpp | |
| parent | Updated readme: organized projects into a table (diff) | |
| download | DiligentEngine-57b27983564952bee0100dcce350361aa32c9494.tar.gz DiligentEngine-57b27983564952bee0100dcce350361aa32c9494.zip | |
Updated core & tools (implemented raw buffers plus other improvements)
Diffstat (limited to 'Tests/TestApp/src/TestCreateObjFromNativeResD3D11.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestCreateObjFromNativeResD3D11.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<ID3D11Texture2D*>(pd3d11Texture), &pTextureFromNativeD3D11Handle); ++m_NumTexturesCreated; } - else if (RESOURCE_DIM_TEX_3D) + else if (SrcTexDesc.Type == RESOURCE_DIM_TEX_3D) { pDeviceD3D11->CreateTextureFromD3DResource(static_cast<ID3D11Texture3D*>(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<IBuffer> pBufferFromNativeD3D11Handle; pDeviceD3D11->CreateBufferFromD3DResource(pd3d11Buffer, BuffDesc, &pBufferFromNativeD3D11Handle); ++m_NumBuffersCreated; |
