mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 15:46:28 +00:00
Rename SamplerDescriptor::compareFunction to compare.
This is to match the WebGPU IDL. BUG=dawn:22 Change-Id: I63e32fe980c1727562055221ea2769a670461e93 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/8625 Reviewed-by: Yunchao He <yunchao.he@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
35716c204d
commit
e409acf561
@@ -87,10 +87,10 @@ namespace dawn_native { namespace opengl {
|
||||
gl.SamplerParameterf(mHandle, GL_TEXTURE_MIN_LOD, descriptor->lodMinClamp);
|
||||
gl.SamplerParameterf(mHandle, GL_TEXTURE_MAX_LOD, descriptor->lodMaxClamp);
|
||||
|
||||
if (ToOpenGLCompareFunction(descriptor->compareFunction) != GL_NEVER) {
|
||||
if (ToOpenGLCompareFunction(descriptor->compare) != GL_NEVER) {
|
||||
gl.SamplerParameteri(mHandle, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_REF_TO_TEXTURE);
|
||||
gl.SamplerParameteri(mHandle, GL_TEXTURE_COMPARE_FUNC,
|
||||
ToOpenGLCompareFunction(descriptor->compareFunction));
|
||||
ToOpenGLCompareFunction(descriptor->compare));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user