diff options
author | Chris Robinson <[email protected]> | 2020-12-05 02:44:19 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-05 02:44:19 -0800 |
commit | 2b919eac78cd6ebe07d6ca7cd01450e6f1aea75b (patch) | |
tree | 48fb8a5c4076ceaaff095cdbcee78e229179274a /core | |
parent | 16ec07275f68919cc0e4264f917e4fcebcdca039 (diff) |
Use an alias for the DevFmtType type
Diffstat (limited to 'core')
-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; |