mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-11 15:16:14 +01:00
Minor -Wsign-conversion warning fix for d3dx12.h
This commit is contained in:
@@ -2024,11 +2024,11 @@ inline void MemcpySubresource(
|
|||||||
for (UINT z = 0; z < NumSlices; ++z)
|
for (UINT z = 0; z < NumSlices; ++z)
|
||||||
{
|
{
|
||||||
auto pDestSlice = static_cast<BYTE*>(pDest->pData) + pDest->SlicePitch * z;
|
auto pDestSlice = static_cast<BYTE*>(pDest->pData) + pDest->SlicePitch * z;
|
||||||
auto pSrcSlice = (static_cast<const BYTE*>(pResourceData) + pSrc->Offset) + pSrc->DepthPitch * LONG_PTR(z);
|
auto pSrcSlice = (static_cast<const BYTE*>(pResourceData) + pSrc->Offset) + pSrc->DepthPitch * ULONG_PTR(z);
|
||||||
for (UINT y = 0; y < NumRows; ++y)
|
for (UINT y = 0; y < NumRows; ++y)
|
||||||
{
|
{
|
||||||
memcpy(pDestSlice + pDest->RowPitch * y,
|
memcpy(pDestSlice + pDest->RowPitch * y,
|
||||||
pSrcSlice + pSrc->RowPitch * LONG_PTR(y),
|
pSrcSlice + pSrc->RowPitch * ULONG_PTR(y),
|
||||||
RowSizeInBytes);
|
RowSizeInBytes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user