Skip to content

Releases: Flone-dnb/shader-formatter

Shader Formatter v1.3.0

12 Jan 09:00
17a0224

Choose a tag to compare

New

  • A new setting ForceLineEnding was implemented allowing you to force a specific line ending during formatting (see the readme file for more details).

Compiled binaries for Windows and Linux attached.

Shader Formatter v1.2.0

20 Oct 15:23
9cc73da

Choose a tag to compare

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

13 May 19:01
e85f566

Choose a tag to compare

Fixes

  • Fix HLSL function arguments not being parsed correctly in some cases.

Changes

  • Rename rule NewLineAroundOpenBraceRule to NewLineOnOpenBrace.

Compiled binaries for Windows and Linux attached.

Shader Formatter v1.1.0

10 May 08:28
b2ab4b6

Choose a tag to compare

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

04 May 17:50
8162db5

Choose a tag to compare

First major release.

Compiled binaries for Windows and Linux attached.