mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 21:47:47 +00:00
DAWN_PLATFORM and DAWN_COMPILER macro improvements
Change #if DAWN_PLATFORM_XXX to #if DAWN_PLATFORM_IS(XXX) To prevent #ifdef usage and reference without including dawn/common/Platform.h Also change #if DAWN_COMPILER_XXX to # if DAWN_COMPILER_IS(XXX) Bug: dawn:1447 Change-Id: If6c9dab15fd2676f9a087507f5efcceeff468d33 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92625 Commit-Queue: Shrek Shao <shrekshao@google.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
@@ -69,7 +69,7 @@ struct ExternalImageExportInfoVk : ExternalImageExportInfo {
|
||||
using ExternalImageExportInfo::ExternalImageExportInfo;
|
||||
};
|
||||
|
||||
// Can't use DAWN_PLATFORM_LINUX since header included in both Dawn and Chrome
|
||||
// Can't use DAWN_PLATFORM_IS(LINUX) since header included in both Dawn and Chrome
|
||||
#ifdef __linux__
|
||||
|
||||
// Common properties of external images represented by FDs. On successful import the file
|
||||
|
||||
Reference in New Issue
Block a user