mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-12-06 07:11:44 +01:00
Fix some C4063 warnings (#411)
This commit is contained in:
parent
d0bcc504eb
commit
6eca077e06
@ -222,7 +222,7 @@ bool DirectX::IsSupportedTexture(
|
|||||||
const size_t iWidth = metadata.width;
|
const size_t iWidth = metadata.width;
|
||||||
const size_t iHeight = metadata.height;
|
const size_t iHeight = metadata.height;
|
||||||
|
|
||||||
switch (fmt)
|
switch (static_cast<int>(fmt))
|
||||||
{
|
{
|
||||||
case DXGI_FORMAT_BC4_TYPELESS:
|
case DXGI_FORMAT_BC4_TYPELESS:
|
||||||
case DXGI_FORMAT_BC4_UNORM:
|
case DXGI_FORMAT_BC4_UNORM:
|
||||||
|
|||||||
@ -338,7 +338,7 @@ bool DirectX::IsSupportedTexture(
|
|||||||
const size_t iWidth = metadata.width;
|
const size_t iWidth = metadata.width;
|
||||||
const size_t iHeight = metadata.height;
|
const size_t iHeight = metadata.height;
|
||||||
|
|
||||||
switch (fmt)
|
switch (static_cast<int>(fmt))
|
||||||
{
|
{
|
||||||
case DXGI_FORMAT_NV12:
|
case DXGI_FORMAT_NV12:
|
||||||
case DXGI_FORMAT_P010:
|
case DXGI_FORMAT_P010:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user