diff options
Diffstat (limited to 'core/devformat.h')
-rw-r--r-- | core/devformat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/devformat.h b/core/devformat.h index bcd42539..9577c4b7 100644 --- a/core/devformat.h +++ b/core/devformat.h @@ -76,6 +76,9 @@ struct DevFmtTypeTraits<DevFmtUInt> { using Type = uint32_t; }; template<> struct DevFmtTypeTraits<DevFmtFloat> { using Type = float; }; +template<DevFmtType T> +using DevFmtType_t = typename DevFmtTypeTraits<T>::Type; + uint BytesFromDevFmt(DevFmtType type) noexcept; uint ChannelsFromDevFmt(DevFmtChannels chans, uint ambiorder) noexcept; |