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

@@ -14,6 +14,8 @@
#include "utils/BackendBinding.h"
#include "common/Assert.h"
namespace utils {
BackendBinding* CreateD3D12Binding();
@@ -50,6 +52,9 @@ namespace utils {
case BackendType::Vulkan:
return nullptr; // TODO(cwallez@chromium.org) change it to CreateVulkanBinding();
default:
UNREACHABLE();
}
}

View File

@@ -14,6 +14,8 @@
#include "utils/NXTHelpers.h"
#include "common/Assert.h"
#include <shaderc/shaderc.hpp>
#include <cstring>
@@ -38,6 +40,8 @@ namespace utils {
case nxt::ShaderStage::Compute:
kind = shaderc_glsl_compute_shader;
break;
default:
UNREACHABLE();
}
auto result = compiler.CompileGlslToSpv(source, strlen(source), kind, "myshader?", options);