Fix MSVC warnings on enum class switches

This commit is contained in:
Corentin Wallez
2017-07-10 20:31:47 -04:00
committed by Corentin Wallez
parent 6fb3aebf0c
commit 96acaef95e
15 changed files with 80 additions and 3 deletions

View File

@@ -23,6 +23,8 @@ namespace backend {
switch (format) {
case nxt::TextureFormat::R8G8B8A8Unorm:
return 4;
default:
UNREACHABLE();
}
}
@@ -97,6 +99,8 @@ namespace backend {
switch (format) {
case nxt::TextureFormat::R8G8B8A8Unorm:
return false;
default:
UNREACHABLE();
}
}