constexpr usage for IsValidIB
This commit is contained in:
Родитель
c1e1c84c68
Коммит
20a18198f5
|
@ -36,7 +36,7 @@ namespace DirectX
|
||||||
//---------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------
|
||||||
// DXGI Format Utilities
|
// DXGI Format Utilities
|
||||||
bool __cdecl IsValidVB(_In_ DXGI_FORMAT fmt) noexcept;
|
bool __cdecl IsValidVB(_In_ DXGI_FORMAT fmt) noexcept;
|
||||||
bool __cdecl IsValidIB(_In_ DXGI_FORMAT fmt) noexcept;
|
constexpr bool __cdecl IsValidIB(_In_ DXGI_FORMAT fmt) noexcept;
|
||||||
size_t __cdecl BytesPerElement(_In_ DXGI_FORMAT fmt) noexcept;
|
size_t __cdecl BytesPerElement(_In_ DXGI_FORMAT fmt) noexcept;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ inline bool __cdecl IsValidVB(DXGI_FORMAT fmt) noexcept
|
||||||
}
|
}
|
||||||
|
|
||||||
_Use_decl_annotations_
|
_Use_decl_annotations_
|
||||||
inline bool __cdecl IsValidIB(DXGI_FORMAT fmt) noexcept
|
constexpr inline bool __cdecl IsValidIB(DXGI_FORMAT fmt) noexcept
|
||||||
{
|
{
|
||||||
return (fmt == DXGI_FORMAT_R32_UINT || fmt == DXGI_FORMAT_R16_UINT) != 0;
|
return (fmt == DXGI_FORMAT_R32_UINT || fmt == DXGI_FORMAT_R16_UINT) != 0;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче