Releases: Flone-dnb/shader-formatter
Releases · Flone-dnb/shader-formatter
Shader Formatter v1.3.0
Shader Formatter v1.2.0
New
- You can now specify a directory to recursively process all files in that directory.
Fixes
- Fixed formatter adding indentation to some empty lines.
Compiled binaries for Windows and Linux attached.
Shader Formatter v1.1.1
Fixes
- Fix HLSL function arguments not being parsed correctly in some cases.
Changes
- Rename rule
NewLineAroundOpenBraceRuletoNewLineOnOpenBrace.
Compiled binaries for Windows and Linux attached.
Shader Formatter v1.1.0
New
- Add indentation on a new line while in braces.
- Add support for parsing uint/uvec function arguments.
- Add support for function arguments with custom types.
- Add support for custom function return types.
- Implement support for NOLINT comments to temporary disable checks.
- Implement support for NOFORMAT comments to skip formatting.
- Implement a new rule
RequireDocsOnFields. - Add temporary indentation level if line starts with
=.
Fixes
- Fix formatter removing a new line after an open brace.
- Fix formatter removing spaces in comparison.
- Fix function arguments with HLSL semantics being missed.
- Fix function usage considered as function declaration in some cases.
- Fix
#if defined(...)being parsed as a function. - Fix parser expecting struct docs after
layout(binding = 0)in GLSL. - Fix array variables/fields being considered as single variables.
- Fix function calls under custom macros being parsed as function declarations in some cases.
- Fix formatter breaking multi-line macros.
- Improve GLSL layout and readonly keywords parsing.
- Improve bracket wrapping near comments.
- Improve text wrapping near preprocessor macros.
- Don't do any formatting checks while in a comment.
Changes
- Don't require argument docs on args with HLSL semantics.
Compiled binaries for Windows and Linux attached.
Shader Formatter v1.0.0
First major release.
Compiled binaries for Windows and Linux attached.