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

[WebGPU] Rename GPUSamplerDescriptor compareFunction to compare

This CL renames GPUSamplerDescriptor compareFunction to compare as
specified in
https://gpuweb.github.io/gpuweb/#dictdef-gpusamplerdescriptor

Bug: 877147
Change-Id: Ib5de8ffd802e40540049cedde9fccf0192dd4568
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1820741
Auto-Submit: François Beaufort <beaufort.francois@gmail.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: default avatarCorentin Wallez <cwallez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699305}
parent 32533d73
...@@ -29,8 +29,7 @@ DawnSamplerDescriptor AsDawnType(const GPUSamplerDescriptor* webgpu_desc) { ...@@ -29,8 +29,7 @@ DawnSamplerDescriptor AsDawnType(const GPUSamplerDescriptor* webgpu_desc) {
AsDawnEnum<DawnFilterMode>(webgpu_desc->mipmapFilter()); AsDawnEnum<DawnFilterMode>(webgpu_desc->mipmapFilter());
dawn_desc.lodMinClamp = webgpu_desc->lodMinClamp(); dawn_desc.lodMinClamp = webgpu_desc->lodMinClamp();
dawn_desc.lodMaxClamp = webgpu_desc->lodMaxClamp(); dawn_desc.lodMaxClamp = webgpu_desc->lodMaxClamp();
dawn_desc.compare = dawn_desc.compare = AsDawnEnum<DawnCompareFunction>(webgpu_desc->compare());
AsDawnEnum<DawnCompareFunction>(webgpu_desc->compareFunction());
return dawn_desc; return dawn_desc;
} }
......
...@@ -13,7 +13,7 @@ dictionary GPUSamplerDescriptor { ...@@ -13,7 +13,7 @@ dictionary GPUSamplerDescriptor {
GPUFilterMode mipmapFilter = "nearest"; GPUFilterMode mipmapFilter = "nearest";
float lodMinClamp = 0; float lodMinClamp = 0;
float lodMaxClamp = 0xffffffff; float lodMaxClamp = 0xffffffff;
GPUCompareFunction compareFunction = "never"; GPUCompareFunction compare = "never";
}; };
enum GPUAddressMode { enum GPUAddressMode {
......
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