diff options
Diffstat (limited to 'source/slang/slang-profile.cpp')
| -rw-r--r-- | source/slang/slang-profile.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/source/slang/slang-profile.cpp b/source/slang/slang-profile.cpp index 9b7112b1f..2b013415d 100644 --- a/source/slang/slang-profile.cpp +++ b/source/slang/slang-profile.cpp @@ -1,15 +1,17 @@ // slang-profile.cpp #include "slang-profile.h" -namespace Slang { +namespace Slang +{ ProfileFamily getProfileFamily(ProfileVersion version) { - switch( version ) + switch (version) { default: return ProfileFamily::Unknown; -#define PROFILE_VERSION(TAG, FAMILY) case ProfileVersion::TAG: return ProfileFamily::FAMILY; +#define PROFILE_VERSION(TAG, FAMILY) \ + case ProfileVersion::TAG: return ProfileFamily::FAMILY; #include "slang-profile-defs.h" } } @@ -23,26 +25,22 @@ bool isRaytracingStage(Stage inStage) case Stage::Intersection: case Stage::ClosestHit: case Stage::Callable: - case Stage::AnyHit: - return true; - default: - return false; + case Stage::AnyHit: return true; + default: return false; } } const char* getStageName(Stage stage) { - switch(stage) + switch (stage) { #define PROFILE_STAGE(ID, NAME, ENUM) \ case Stage::ID: return #NAME; #include "slang-profile-defs.h" - default: - return nullptr; + default: return nullptr; } - } void printDiagnosticArg(StringBuilder& sb, Stage val) @@ -56,4 +54,4 @@ void printDiagnosticArg(StringBuilder& sb, ProfileVersion val) } -} +} // namespace Slang |
