1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-21 12:00:06 +00:00

Fix some C4063 warnings (#411)

This commit is contained in:
Chuck Walbourn 2023-11-08 18:20:23 -08:00 committed by GitHub
parent d0bcc504eb
commit 6eca077e06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ bool DirectX::IsSupportedTexture(
const size_t iWidth = metadata.width;
const size_t iHeight = metadata.height;
switch (fmt)
switch (static_cast<int>(fmt))
{
case DXGI_FORMAT_BC4_TYPELESS:
case DXGI_FORMAT_BC4_UNORM:

View File

@ -338,7 +338,7 @@ bool DirectX::IsSupportedTexture(
const size_t iWidth = metadata.width;
const size_t iHeight = metadata.height;
switch (fmt)
switch (static_cast<int>(fmt))
{
case DXGI_FORMAT_NV12:
case DXGI_FORMAT_P010: