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/TestCopyTexData.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Tests/TestApp/src/TestCopyTexData.cpp') diff --git a/Tests/TestApp/src/TestCopyTexData.cpp b/Tests/TestApp/src/TestCopyTexData.cpp index 63dd2b9..01e0274 100644 --- a/Tests/TestApp/src/TestCopyTexData.cpp +++ b/Tests/TestApp/src/TestCopyTexData.cpp @@ -95,7 +95,7 @@ void TestCopyTexData::Test2DTexture( TEXTURE_FORMAT Format ) Diligent::RefCntAutoPtr pSrcTex, pDstTex; auto FmtAttribs = m_pDevice->GetTextureFormatInfo(Format); - auto TexelSize = FmtAttribs.ComponentSize * FmtAttribs.NumComponents; + auto TexelSize = Uint32{FmtAttribs.ComponentSize} * Uint32{FmtAttribs.NumComponents}; std::vector DummyData(TexDesc.Width * TexDesc.Height * TexelSize); TextureData InitData; InitData.NumSubresources = TexDesc.MipLevels; @@ -147,7 +147,7 @@ void TestCopyTexData::Test2DTexArray( TEXTURE_FORMAT Format ) Diligent::RefCntAutoPtr pSrcTex, pDstTex; auto FmtAttribs = m_pDevice->GetTextureFormatInfo(Format); - auto TexelSize = FmtAttribs.ComponentSize * FmtAttribs.NumComponents; + auto TexelSize = Uint32{FmtAttribs.ComponentSize} * Uint32{FmtAttribs.NumComponents}; std::vector DummyData(TexDesc.Width * TexDesc.Height * TexelSize); TextureData InitData; InitData.NumSubresources = TexDesc.MipLevels * TexDesc.ArraySize; @@ -204,7 +204,7 @@ void TestCopyTexData::Test3DTexture( TEXTURE_FORMAT Format ) Diligent::RefCntAutoPtr pSrcTex, pDstTex; auto FmtAttribs = m_pDevice->GetTextureFormatInfo(Format); - auto TexelSize = FmtAttribs.ComponentSize * FmtAttribs.NumComponents; + auto TexelSize = Uint32{FmtAttribs.ComponentSize} * Uint32{FmtAttribs.NumComponents}; std::vector DummyData(TexDesc.Width * TexDesc.Height * TexDesc.Depth * TexelSize); TextureData InitData; InitData.NumSubresources = TexDesc.MipLevels; -- cgit v1.2.3