1.3 Beta - not honoring culture when reading XML comments


And it seems that Shazzam doesn't respect the locale when parsing the default values from the FX file's XML comments. My Windows 7 is German and therefore the default decimal separator is a "," and not ".", which is used in the samples.
Per default the current culture is used by .Net when parsing numbers. It should work right with an invariant culture:
int32.Parse("mystring", NumberFormatInfo.InvariantInfo);
For example the ParametricEdgeDetection.fx contains this:
/// <summary>The threshold of the edge detection.</summary>
/// <minValue>0</minValue>
/// <maxValue>2</maxValue>
/// <defaultValue>0.5</defaultValue>
float Threshhold : register(C0);
But the Shader Settings is initialized with 5 as default value:

file attachments

Closed Jul 5, 2010 at 9:12 PM by WaltRitscher