Commit d5eb73f4 authored by François Beaufort's avatar François Beaufort Committed by Commit Bot

[WebGPU] Add storage-texture to GPUBindingType enum

This CL adds a "storage-texture" value to the GPUBindingType enum. Note
that this will still raise a WebGPU validation error as it is not yet
implemented in Dawn.

Bug: 877147
Change-Id: Ib3e3084063fd006b745e3e52b0249a01349e22cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1831903Reviewed-by: default avatarCorentin Wallez <cwallez@chromium.org>
Commit-Queue: François Beaufort <beaufort.francois@gmail.com>
Cr-Commit-Position: refs/heads/master@{#701104}
parent 993c855c
...@@ -32,6 +32,9 @@ DawnBindingType AsDawnEnum<DawnBindingType>(const WTF::String& webgpu_enum) { ...@@ -32,6 +32,9 @@ DawnBindingType AsDawnEnum<DawnBindingType>(const WTF::String& webgpu_enum) {
if (webgpu_enum == "sampled-texture") { if (webgpu_enum == "sampled-texture") {
return DAWN_BINDING_TYPE_SAMPLED_TEXTURE; return DAWN_BINDING_TYPE_SAMPLED_TEXTURE;
} }
if (webgpu_enum == "storage-texture") {
return DAWN_BINDING_TYPE_STORAGE_TEXTURE;
}
NOTREACHED(); NOTREACHED();
return DAWN_BINDING_TYPE_FORCE32; return DAWN_BINDING_TYPE_FORCE32;
} }
......
...@@ -20,6 +20,7 @@ enum GPUBindingType { ...@@ -20,6 +20,7 @@ enum GPUBindingType {
"readonly-storage-buffer", "readonly-storage-buffer",
"sampler", "sampler",
"sampled-texture", "sampled-texture",
"storage-texture",
}; };
enum GPUTextureComponentType { enum GPUTextureComponentType {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment