Make VertexFormat::size a const fn

This commit is contained in:
Imbris committed 2020-11-26 03:36:13 -05:00
1 parent fd99466867
commit 44a20d72ef
1 file changed
+1 -1
+1 -1
View File
@@ -1165,7 +1165,7 @@ pub enum VertexFormat {
}
impl VertexFormat {
pub fn size(&self) -> u64 {
pub const fn size(&self) -> u64 {
match self {
Self::Uchar2 | Self::Char2 | Self::Uchar2Norm | Self::Char2Norm => 2,
Self::Uchar4