Fix systemName output on Mac/iOS
macOS and iOS were switched. Bug: None Change-Id: I10872110cc3122114d3dfdb29dd4672bdc2cfb6b Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/30723 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
e5f5cb8c3e
commit
22505a5afe
|
@ -187,14 +187,14 @@ namespace dawn_native { namespace metal {
|
||||||
|
|
||||||
#if defined(DAWN_PLATFORM_IOS)
|
#if defined(DAWN_PLATFORM_IOS)
|
||||||
mAdapterType = wgpu::AdapterType::IntegratedGPU;
|
mAdapterType = wgpu::AdapterType::IntegratedGPU;
|
||||||
const char* systemName = "macOS";
|
const char* systemName = "iOS ";
|
||||||
#elif defined(DAWN_PLATFORM_MACOS)
|
#elif defined(DAWN_PLATFORM_MACOS)
|
||||||
if ([device isLowPower]) {
|
if ([device isLowPower]) {
|
||||||
mAdapterType = wgpu::AdapterType::IntegratedGPU;
|
mAdapterType = wgpu::AdapterType::IntegratedGPU;
|
||||||
} else {
|
} else {
|
||||||
mAdapterType = wgpu::AdapterType::DiscreteGPU;
|
mAdapterType = wgpu::AdapterType::DiscreteGPU;
|
||||||
}
|
}
|
||||||
const char* systemName = "iOS";
|
const char* systemName = "macOS ";
|
||||||
#else
|
#else
|
||||||
# error "Unsupported Apple platform."
|
# error "Unsupported Apple platform."
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue