More code review

This commit is contained in:
Chuck Walbourn 2025-11-03 20:46:38 -08:00
parent 1fd61e2c32
commit 0ebd76b1a7

View File

@ -809,8 +809,8 @@ namespace
viewPort.TopLeftX = viewPort.TopLeftY = 0.f; viewPort.TopLeftX = viewPort.TopLeftY = 0.f;
viewPort.Width = static_cast<float>(width); viewPort.Width = static_cast<float>(width);
viewPort.Height = static_cast<float>(height); viewPort.Height = static_cast<float>(height);
viewPort.MinDepth = D3D11_MIN_DEPTH; viewPort.MinDepth = 0.f /*D3D11_MIN_DEPTH*/;
viewPort.MaxDepth = D3D11_MAX_DEPTH; viewPort.MaxDepth = 1.f /*D3D11_MAX_DEPTH*/;
return hr; return hr;
} }
@ -1263,7 +1263,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
format = static_cast<DXGI_FORMAT>(LookupByName(pValue, g_pFormatAliases)); format = static_cast<DXGI_FORMAT>(LookupByName(pValue, g_pFormatAliases));
if (!format) if (!format)
{ {
wprintf(L"Invalid value specified with -f (%ls)\n", pValue); wprintf(L"Invalid value specified with -f (%ls)\n\n", pValue);
PrintUsage(); PrintUsage();
return 1; return 1;
} }
@ -1274,7 +1274,8 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
dwFilter = static_cast<TEX_FILTER_FLAGS>(LookupByName(pValue, g_pFilters)); dwFilter = static_cast<TEX_FILTER_FLAGS>(LookupByName(pValue, g_pFilters));
if (!dwFilter) if (!dwFilter)
{ {
wprintf(L"Invalid value specified with -if (%ls)\n", pValue); wprintf(L"Invalid value specified with -if (%ls)\n\n", pValue);
PrintUsage();
return 1; return 1;
} }
break; break;
@ -1343,7 +1344,7 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
} }
else if (adapter < 0) else if (adapter < 0)
{ {
wprintf(L"Adapter index (%ls)\n\n", pValue); wprintf(L"Invalid adapter index (%ls)\n\n", pValue);
PrintUsage(); PrintUsage();
return 1; return 1;
} }