From ee33567cae433707a57856c148cff9d53b8d19e3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 27 Mar 2026 16:14:45 +0100 Subject: style(engine): improve formatting of default shader --- .clang-format | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .clang-format (limited to '.clang-format') diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..6310257 --- /dev/null +++ b/.clang-format @@ -0,0 +1,26 @@ +# Formatting configuration for shaders +BasedOnStyle: LLVM +UseTab: Never +IndentWidth: 4 +TabWidth: 4 +BreakBeforeBraces: Custom +BraceWrapping: + AfterCaseLabel: false + AfterControlStatement: Never + AfterEnum: true + AfterFunction: true + AfterNamespace: true + AfterStruct: true + AfterUnion: true + BeforeElse: false + BeforeWhile: false + IndentBraces: false +AllowShortIfStatementsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty +ColumnLimit: 90 +AccessModifierOffset: -4 +AlwaysBreakTemplateDeclarations: Yes +BinPackArguments: false +BinPackParameters: OnePerLine +BreakAfterOpenBracketFunction: true +BreakBeforeCloseBracketFunction: true -- cgit v1.2.3-18-g5258