mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 01:15:39 +00:00
Remove sampler border color from Dawn to match WebGPU
Bug: chromium:877147 Change-Id: I9760b3c6cb67a3ffa08feeaff8e8b24b80ec4200 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/6380 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
865cad89b9
commit
5f1d2e1c8d
@@ -233,7 +233,6 @@ TEST_P(BindGroupTests, UBOSamplerAndTexture) {
|
||||
samplerDescriptor.lodMinClamp = kLodMin;
|
||||
samplerDescriptor.lodMaxClamp = kLodMax;
|
||||
samplerDescriptor.compareFunction = dawn::CompareFunction::Never;
|
||||
samplerDescriptor.borderColor = dawn::BorderColor::TransparentBlack;
|
||||
|
||||
dawn::Sampler sampler = device.CreateSampler(&samplerDescriptor);
|
||||
|
||||
|
||||
@@ -129,7 +129,6 @@ protected:
|
||||
descriptor.lodMinClamp = kLodMin;
|
||||
descriptor.lodMaxClamp = kLodMax;
|
||||
descriptor.compareFunction = dawn::CompareFunction::Never;
|
||||
descriptor.borderColor = dawn::BorderColor::TransparentBlack;
|
||||
sampler = device.CreateSampler(&descriptor);
|
||||
}
|
||||
|
||||
|
||||
@@ -102,7 +102,6 @@ protected:
|
||||
samplerDescriptor.lodMinClamp = kLodMin;
|
||||
samplerDescriptor.lodMaxClamp = kLodMax;
|
||||
samplerDescriptor.compareFunction = dawn::CompareFunction::Never;
|
||||
samplerDescriptor.borderColor = dawn::BorderColor::TransparentBlack;
|
||||
mSampler = device.CreateSampler(&samplerDescriptor);
|
||||
|
||||
mPipelineLayout = utils::MakeBasicPipelineLayout(device, &mBindGroupLayout);
|
||||
|
||||
@@ -246,7 +246,6 @@ TEST_F(WireArgumentTests, StructureOfValuesArgument) {
|
||||
descriptor.lodMinClamp = kLodMin;
|
||||
descriptor.lodMaxClamp = kLodMax;
|
||||
descriptor.compareFunction = DAWN_COMPARE_FUNCTION_NEVER;
|
||||
descriptor.borderColor = DAWN_BORDER_COLOR_TRANSPARENT_BLACK;
|
||||
|
||||
dawnDeviceCreateSampler(device, &descriptor);
|
||||
|
||||
@@ -261,7 +260,6 @@ TEST_F(WireArgumentTests, StructureOfValuesArgument) {
|
||||
desc->addressModeV == DAWN_ADDRESS_MODE_REPEAT &&
|
||||
desc->addressModeW == DAWN_ADDRESS_MODE_MIRRORED_REPEAT &&
|
||||
desc->compareFunction == DAWN_COMPARE_FUNCTION_NEVER &&
|
||||
desc->borderColor == DAWN_BORDER_COLOR_TRANSPARENT_BLACK &&
|
||||
desc->lodMinClamp == kLodMin && desc->lodMaxClamp == kLodMax;
|
||||
})))
|
||||
.WillOnce(Return(apiDummySampler));
|
||||
|
||||
Reference in New Issue
Block a user