From f6c2a0f81340a0efd10e286a3cbe33e1b564a11b Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 9 Mar 2022 15:59:40 -0800 Subject: gfx: restructure render-vk.cpp (#2157) Co-authored-by: Yong He --- tools/gfx/d3d12/render-d3d12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/gfx/d3d12/render-d3d12.cpp') diff --git a/tools/gfx/d3d12/render-d3d12.cpp b/tools/gfx/d3d12/render-d3d12.cpp index 1e73caf44..67c31158b 100644 --- a/tools/gfx/d3d12/render-d3d12.cpp +++ b/tools/gfx/d3d12/render-d3d12.cpp @@ -7027,7 +7027,7 @@ void ResourceCommandEncoderImpl::copyTextureToBuffer( } assert(dstRowStride % D3D12_TEXTURE_DATA_PITCH_ALIGNMENT == 0); - footprint.Footprint.RowPitch = dstRowStride; + footprint.Footprint.RowPitch = (UINT)dstRowStride; auto bufferSize = footprint.Footprint.RowPitch * footprint.Footprint.Height * footprint.Footprint.Depth; -- cgit v1.2.3