mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 14:23:02 +01:00
Cleanup.
This commit is contained in:
@@ -4894,6 +4894,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
: 0
|
||||
;
|
||||
|
||||
bool depth = isDepth(TextureFormat::Enum(src.m_textureFormat) );
|
||||
deviceCtx->CopySubresourceRegion(dst.m_ptr
|
||||
, dstZ*dst.m_numMips+blit.m_dstMip
|
||||
, blit.m_dstX
|
||||
@@ -4901,7 +4902,7 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
||||
, 0
|
||||
, src.m_ptr
|
||||
, srcZ*src.m_numMips+blit.m_srcMip
|
||||
, isDepth((TextureFormat::Enum)src.m_textureFormat) ? NULL : &box
|
||||
, depth ? NULL : &box
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4614,12 +4614,13 @@ data.NumQualityLevels = 0;
|
||||
|
||||
D3D12_TEXTURE_COPY_LOCATION dstLocation = { dst.m_ptr, D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX, { dstZ*dst.m_numMips+blit.m_dstMip } };
|
||||
D3D12_TEXTURE_COPY_LOCATION srcLocation = { src.m_ptr, D3D12_TEXTURE_COPY_TYPE_SUBRESOURCE_INDEX, { srcZ*src.m_numMips+blit.m_srcMip } };
|
||||
bool depth = isDepth(TextureFormat::Enum(src.m_textureFormat) );
|
||||
m_commandList->CopyTextureRegion(&dstLocation
|
||||
, blit.m_dstX
|
||||
, blit.m_dstY
|
||||
, 0
|
||||
, &srcLocation
|
||||
, &box
|
||||
, depth ? NULL : &box
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3648,10 +3648,11 @@ namespace bgfx { namespace d3d9
|
||||
//
|
||||
// GetRenderTargetData (dst must be SYSTEMMEM)
|
||||
|
||||
bool depth = isDepth(TextureFormat::Enum(src.m_textureFormat) );
|
||||
HRESULT hr = m_device->StretchRect(srcSurface
|
||||
, isDepth((TextureFormat::Enum)src.m_textureFormat) ? NULL : &srcRect
|
||||
, depth ? NULL : &srcRect
|
||||
, dstSurface
|
||||
, isDepth((TextureFormat::Enum)src.m_textureFormat) ? NULL : &dstRect
|
||||
, depth ? NULL : &dstRect
|
||||
, D3DTEXF_NONE
|
||||
);
|
||||
if (FAILED(hr) )
|
||||
|
||||
Reference in New Issue
Block a user