mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-09-11 13:33:53 +00:00
ShaderModule: Add default case to ResourceType switch
`kExternalTexture` was recently added in tint, and now the compiler warns / errors that this isn't handled by the switch. Add a default that is `UNREACHABLE()`. Will fix one of the issues preventing a tint -> dawn roll. Bug: dawn:728 Change-Id: I510526af46e1f1981a7434f615aa8ed5e56534cd Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/51362 Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
parent
ce3d4a5b09
commit
122e6abdd4
@ -193,6 +193,10 @@ namespace dawn_native {
|
||||
case tint::inspector::ResourceBinding::ResourceType::kReadOnlyStorageTexture:
|
||||
case tint::inspector::ResourceBinding::ResourceType::kWriteOnlyStorageTexture:
|
||||
return BindingInfoType::StorageTexture;
|
||||
|
||||
default:
|
||||
UNREACHABLE();
|
||||
return BindingInfoType::Buffer;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user