diff options
| author | Yong He <yonghe@outlook.com> | 2022-03-09 15:59:40 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-09 15:59:40 -0800 |
| commit | f6c2a0f81340a0efd10e286a3cbe33e1b564a11b (patch) | |
| tree | a53f9b05d2563548149ea51abf669380cd42d97f /tools/gfx/d3d12/render-d3d12.cpp | |
| parent | f67d929c24babc302eb2807251fc09b084abac2e (diff) | |
gfx: restructure render-vk.cpp (#2157)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx/d3d12/render-d3d12.cpp')
| -rw-r--r-- | tools/gfx/d3d12/render-d3d12.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
