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:
parent
bf55236e13
commit
a823ea10a0
|
@ -101,6 +101,8 @@ std::string GetArchitectureName(PCIVendorID vendorId, PCIDeviceID deviceId) {
|
|||
{% endfor %}
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
} // namespace gpu_info
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue