Shader_Minifier
Shader_Minifier copied to clipboard
Online minifier processes generics incorrectly
When trying this shader with the online shader minifier:
struct MyStruct {
float3 pos;
};
StructuredBuffer<MyStruct> mySB;
This gets shown as 'original':
struct MyStruct {
float3 pos;
};
StructuredBuffer mySB;
So it seems to be missing the generic argument.
Thanks for the report. It's probably a printer bug and should be easy to fix.
From a quick look at the code, this line looks suspicious: https://github.com/laurentlb/shader-minifier/blob/master/Minifier/printer.fs#L186
maybe it should append the .template suffix.