mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-04 04:16:12 +01:00
Replaced _countof / ARRAYSIZE with std::size
This commit is contained in:
@@ -701,7 +701,7 @@ namespace
|
||||
wchar_t version[32] = {};
|
||||
|
||||
wchar_t appName[_MAX_PATH] = {};
|
||||
if (GetModuleFileNameW(nullptr, appName, _countof(appName)))
|
||||
if (GetModuleFileNameW(nullptr, appName, static_cast<UINT>(std::size(appName))))
|
||||
{
|
||||
DWORD size = GetFileVersionInfoSizeW(appName, nullptr);
|
||||
if (size > 0)
|
||||
@@ -919,7 +919,7 @@ namespace
|
||||
D3D_FEATURE_LEVEL fl;
|
||||
HRESULT hr = s_DynamicD3D11CreateDevice(pAdapter.Get(),
|
||||
(pAdapter) ? D3D_DRIVER_TYPE_UNKNOWN : D3D_DRIVER_TYPE_HARDWARE,
|
||||
nullptr, createDeviceFlags, featureLevels, _countof(featureLevels),
|
||||
nullptr, createDeviceFlags, featureLevels, static_cast<UINT>(std::size(featureLevels)),
|
||||
D3D11_SDK_VERSION, pDevice, &fl, nullptr);
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user