mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Cleanup.
This commit is contained in:
@@ -1867,13 +1867,7 @@ namespace bgfx { namespace d3d11
|
||||
|
||||
uint32_t pitch = bx::uint32_min(srcPitch, dstPitch);
|
||||
|
||||
for (uint32_t yy = 0, height = srcHeight; yy < height; ++yy)
|
||||
{
|
||||
bx::memCopy(dst, src, pitch);
|
||||
|
||||
src += srcPitch;
|
||||
dst += dstPitch;
|
||||
}
|
||||
bx::memCopy(dst, dstPitch, src, srcPitch, pitch, srcHeight);
|
||||
|
||||
m_deviceCtx->Unmap(texture.m_ptr, _mip);
|
||||
}
|
||||
|
||||
@@ -2002,13 +2002,7 @@ namespace bgfx { namespace d3d12
|
||||
uint8_t* src;
|
||||
readback->Map(0, NULL, (void**)&src);
|
||||
|
||||
for (uint32_t yy = 0, height = srcHeight; yy < height; ++yy)
|
||||
{
|
||||
bx::memCopy(dst, src, pitch);
|
||||
|
||||
src += srcPitch;
|
||||
dst += dstPitch;
|
||||
}
|
||||
bx::memCopy(dst, dstPitch, src, srcPitch, pitch, srcHeight);
|
||||
|
||||
D3D12_RANGE writeRange = { 0, 0 };
|
||||
readback->Unmap(0, &writeRange);
|
||||
|
||||
Reference in New Issue
Block a user