mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 00:17:03 +00:00
Fix MSVC warnings on enum class switches
This commit is contained in:
committed by
Corentin Wallez
parent
6fb3aebf0c
commit
96acaef95e
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user