Add default to conversion utility to avoid build breakage

I am about to add a new entry to the enum being used in this switch on
the spvc side. Temporarily adding in a default here, so that can roll
correctly, then this function can be updated to use the new entry.

BUG=dawn:367

Change-Id: I9345f651e2e23604599a1b25fcd2993127062695
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/19040
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
Ryan Harrison 2020-04-07 21:53:37 +00:00 committed by Commit Bot service account
parent 30ec4fc626
commit 9d2de1d6d4
1 changed files with 6 additions and 1 deletions

View File

@ -119,8 +119,13 @@ namespace dawn_native {
return wgpu::BindingType::WriteonlyStorageTexture;
case shaderc_spvc_binding_type_storage_texture:
return wgpu::BindingType::StorageTexture;
default:
// This default needs to be here temporarily, to avoid
// build/dependency issues when spvc adds a new entry to the
// enum. Once the new entry is available I will land a
// second patch to remove this default.
UNREACHABLE();
}
UNREACHABLE();
}
SingleShaderStage ToSingleShaderStage(shaderc_spvc_execution_model execution_model) {