Use an alias for the DevFmtType type

This commit is contained in:
Chris Robinson
2020-12-05 02:44:19 -08:00
parent 16ec07275f
commit 2b919eac78
3 changed files with 19 additions and 26 deletions
+3
View File
@@ -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;