dawn: Fix GCC warnings about functions not returning

Change-Id: Ia55a6549508a3259b97a35d2c06659a86633bc9e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94321
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Ben Clayton 2022-06-20 14:35:22 +00:00 committed by Dawn LUCI CQ
parent bf55236e13
commit a823ea10a0
3 changed files with 6 additions and 2 deletions

View File

@ -101,6 +101,8 @@ std::string GetArchitectureName(PCIVendorID vendorId, PCIDeviceID deviceId) {
{% endfor %}
{% endfor %}
}
return "";
}
} // namespace gpu_info

View File

@ -113,8 +113,9 @@ tint::transform::VertexStepMode ToTintVertexStepMode(wgpu::VertexStepMode mode)
case wgpu::VertexStepMode::Instance:
return tint::transform::VertexStepMode::kInstance;
case wgpu::VertexStepMode::VertexBufferNotUsed:
UNREACHABLE();
break;
}
UNREACHABLE();
}
ResultOrError<SingleShaderStage> TintPipelineStageToShaderStage(tint::ast::PipelineStage stage) {

View File

@ -40,8 +40,9 @@ VkVertexInputRate VulkanInputRate(wgpu::VertexStepMode stepMode) {
case wgpu::VertexStepMode::Instance:
return VK_VERTEX_INPUT_RATE_INSTANCE;
case wgpu::VertexStepMode::VertexBufferNotUsed:
UNREACHABLE();
break;
}
UNREACHABLE();
}
VkFormat VulkanVertexFormat(wgpu::VertexFormat format) {