mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-16 15:00:14 +02:00
One more case of constexpr plus inline
This commit is contained in:
parent
bcf514174c
commit
ab6776554b
@ -43,7 +43,7 @@ constexpr TEX_COMPRESS_FLAGS operator|(TEX_FILTER_FLAGS a, TEX_COMPRESS_FLAGS b)
|
|||||||
//=====================================================================================
|
//=====================================================================================
|
||||||
|
|
||||||
_Use_decl_annotations_
|
_Use_decl_annotations_
|
||||||
constexpr inline bool __cdecl IsValid(DXGI_FORMAT fmt) noexcept
|
constexpr bool __cdecl IsValid(DXGI_FORMAT fmt) noexcept
|
||||||
{
|
{
|
||||||
return (static_cast<size_t>(fmt) >= 1 && static_cast<size_t>(fmt) <= 190);
|
return (static_cast<size_t>(fmt) >= 1 && static_cast<size_t>(fmt) <= 190);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user