summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-03-27 16:14:45 +0100
committerHampusM <hampus@hampusmat.com>2026-03-27 16:14:45 +0100
commitee33567cae433707a57856c148cff9d53b8d19e3 (patch)
tree0cb7cc77a26a8aa5a5d2f27460cd7280e2810a8f /.clang-format
parent5dbab7fce76997e800491b54ebeca612ac783094 (diff)
style(engine): improve formatting of default shader
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format26
1 files changed, 26 insertions, 0 deletions
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