Skip to content

Commit

Permalink
Version 1.2 (#125)
Browse files Browse the repository at this point in the history
Update version to 1.2 and update the README file

Also, make the dependency on FSharp.Core explicit, because it seems to be needed in Visual Studio.
  • Loading branch information
laurentlb authored Jan 13, 2022
1 parent 406d19e commit bde1e00
Show file tree
Hide file tree
Showing 28 changed files with 38 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Checker/Checker.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
</Project>
4 changes: 4 additions & 0 deletions Checker/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FSharp.Core" version="5.0.0" targetFramework="net48" />
</packages>
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ $ mono shader_minifier.exe # Linux, Mac...
```

```
USAGE: shader_minifier.exe [--help] [-o <string>] [-v] [--hlsl] [--format <text|c-variables|c-array|js|nasm>]
USAGE: shader_minifier.exe [--help] [-o <string>] [-v] [--hlsl] [--format <text|indented|c-variables|c-array|js|nasm>]
[--field-names <rgba|xyzw|stpq>] [--preserve-externals] [--preserve-all-globals]
[--no-renaming] [--no-renaming-list <string>] [--no-sequence] [--smoothstep] [<filename>...]
[--no-inlining] [--no-renaming] [--no-renaming-list <string>] [--no-sequence] [--smoothstep]
[<filename>...]
FILENAMES:
Expand All @@ -95,7 +96,7 @@ OPTIONS:
-o <string> Set the output filename (default is shader_code.h)
-v Verbose, display additional information
--hlsl Use HLSL (default is GLSL)
--format <text|c-variables|c-array|js|nasm>
--format <text|indented|c-variables|c-array|js|nasm>
Choose to format the output (use none if you want just the shader)
--field-names <rgba|xyzw|stpq>
Choose the field names for vectors: 'rgba', 'xyzw', or 'stpq'
Expand Down Expand Up @@ -203,7 +204,7 @@ void GSScene( triangleadj GSSceneIn input[6], inout TriangleStream<PSSceneIn> Ou
### Automatic inlining
Shader Minifier 1.7 and above will try to automatically inline some variables.
Shader Minifier will try to automatically inline some variables.
This happens when:
- the variable is used only once in the current block,
- and the variable is not used in a sub-block (e.g. inside a loop),
Expand Down
4 changes: 4 additions & 0 deletions packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="FSharp.Core" version="5.0.0" targetFramework="net48" />
</packages>
2 changes: 1 addition & 1 deletion src/options.fs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
open System.IO
open Argu

let version = "1.1.6" // Shader Minifier version
let version = "1.2" // Shader Minifier version
let debugMode = false

type OutputFormat =
Expand Down
2 changes: 1 addition & 1 deletion tests/real/chocolux.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef CHOCOLUX_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/real/disco.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/real/elevated.hlsl.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef ELEVATED_HLSL_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/real/kinder_painter.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/real/leizex.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
; File generated with Shader Minifier 1.1.6
; File generated with Shader Minifier 1.2
; http://www.ctrl-alt-test.fr

_leizex_frag:
Expand Down
2 changes: 1 addition & 1 deletion tests/real/lunaquatic.frag.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef LUNAQUATIC_FRAG_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/real/mandelbulb.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef MANDELBULB_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/real/oscars_chair.frag.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef OSCARS_CHAIR_FRAG_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/real/sult.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef SULT_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/real/the_real_party_is_in_your_pocket.frag.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef THE_REAL_PARTY_IS_IN_YOUR_POCKET_FRAG_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/real/to_the_road_of_ribbon.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef TO_THE_ROAD_OF_RIBBON_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/real/yx_long_way_from_home.frag.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef YX_LONG_WAY_FROM_HOME_FRAG_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/blocks.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef BLOCKS_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/externals.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef EXTERNALS_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/externals.preserved.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef EXTERNALS_PRESERVED_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/float.frag.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/function_comma.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef FUNCTION_COMMA_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/function_overload.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef FUNCTION_OVERLOAD_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/geometry.hlsl.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef GEOMETRY_HLSL_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/macros.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/
#ifndef MACROS_EXPECTED_
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/many_variables.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/minus-zero.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/operators.expected
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* File generated with Shader Minifier 1.1.6
/* File generated with Shader Minifier 1.2
* http://www.ctrl-alt-test.fr
*/

Expand Down

0 comments on commit bde1e00

Please sign in to comment.