mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-14 22:20:12 +02:00
Fixed warnings found by Dev14 CTP
This commit is contained in:
parent
0922ab3f94
commit
91951178e0
@ -2053,7 +2053,7 @@ bool _StoreScanline( LPVOID pDestination, size_t size, DXGI_FORMAT format,
|
||||
case DXGI_FORMAT_G8R8_G8B8_UNORM:
|
||||
if ( size >= sizeof(XMUBYTEN4) )
|
||||
{
|
||||
static XMVECTORI32 select1101 = {XM_SELECT_1, XM_SELECT_1, XM_SELECT_0, XM_SELECT_1};
|
||||
static XMVECTORU32 select1101 = {XM_SELECT_1, XM_SELECT_1, XM_SELECT_0, XM_SELECT_1};
|
||||
|
||||
XMUBYTEN4 * __restrict dPtr = reinterpret_cast<XMUBYTEN4*>(pDestination);
|
||||
for( size_t icount = 0; icount < ( size - sizeof(XMUBYTEN4) + 1 ); icount += sizeof(XMUBYTEN4) )
|
||||
|
@ -678,7 +678,7 @@ static HRESULT _EncodeImage( _In_ const Image& image, _In_ DWORD flags, _In_ REF
|
||||
if ( FAILED(hr) )
|
||||
return hr;
|
||||
|
||||
WICRect rect = { 0, 0, static_cast<UINT>( image.width ), static_cast<UINT>( image.height ) };
|
||||
WICRect rect = { 0, 0, static_cast<INT>( image.width ), static_cast<INT>( image.height ) };
|
||||
hr = frame->WriteSource( FC.Get(), &rect );
|
||||
if ( FAILED(hr) )
|
||||
return hr;
|
||||
|
@ -1125,7 +1125,7 @@ HRESULT DirectX::SaveWICTextureToFile( _In_ ID3D11DeviceContext* pContext,
|
||||
return hr;
|
||||
}
|
||||
|
||||
WICRect rect = { 0, 0, desc.Width, desc.Height };
|
||||
WICRect rect = { 0, 0, static_cast<INT>(desc.Width), static_cast<INT>(desc.Height) };
|
||||
hr = frame->WriteSource( FC.Get(), &rect );
|
||||
if ( FAILED(hr) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user