mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
Rename DeviceDescriptor -> DawnDeviceDescriptor
This is preventing supporting DeviceDescriptor from upstream webgpu.h because the name conflicts with the existing struct. A typedef using the original name DeviceDescriptor is added until all embedders of Dawn are updated to use the new name. Bug: dawn:160, dawn:689 Change-Id: Ib9cb7443b7e46e3ffe29d2ec109f2f1a831754e7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/70581 Reviewed-by: Brandon Jones <bajones@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
@@ -55,7 +55,7 @@ TEST_F(FeatureTests, AdapterWithRequiredFeatureDisabled) {
|
||||
mAdapterBase.SetSupportedFeatures(featureNamesWithoutOne);
|
||||
dawn_native::Adapter adapterWithoutFeature(&mAdapterBase);
|
||||
|
||||
dawn_native::DeviceDescriptor deviceDescriptor;
|
||||
dawn_native::DawnDeviceDescriptor deviceDescriptor;
|
||||
const char* featureName = FeatureEnumToName(notSupportedFeature);
|
||||
deviceDescriptor.requiredFeatures = std::vector<const char*>(1, featureName);
|
||||
WGPUDevice deviceWithFeature = adapterWithoutFeature.CreateDevice(&deviceDescriptor);
|
||||
@@ -70,7 +70,7 @@ TEST_F(FeatureTests, GetEnabledFeatures) {
|
||||
dawn_native::Feature feature = static_cast<dawn_native::Feature>(i);
|
||||
const char* featureName = FeatureEnumToName(feature);
|
||||
|
||||
dawn_native::DeviceDescriptor deviceDescriptor;
|
||||
dawn_native::DawnDeviceDescriptor deviceDescriptor;
|
||||
deviceDescriptor.requiredFeatures = {featureName};
|
||||
dawn_native::DeviceBase* deviceBase =
|
||||
reinterpret_cast<dawn_native::DeviceBase*>(adapter.CreateDevice(&deviceDescriptor));
|
||||
|
||||
Reference in New Issue
Block a user