aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-05 02:44:19 -0800
committerChris Robinson <[email protected]>2020-12-05 02:44:19 -0800
commit2b919eac78cd6ebe07d6ca7cd01450e6f1aea75b (patch)
tree48fb8a5c4076ceaaff095cdbcee78e229179274a /core
parent16ec07275f68919cc0e4264f917e4fcebcdca039 (diff)
Use an alias for the DevFmtType type
Diffstat (limited to 'core')
-rw-r--r--core/devformat.h3
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;