Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FormatShaderModel()

static string Microsoft.Xna.Framework.Graphics.Effect.FormatShaderModel ( uint shaderModel)
inlinestaticprivateinherited

Definition at line 209 of file Effect.cs.

210 {
211 if (shaderModel == 513)
212 {
213 return "2.x";
214 }
215 return string.Format(args: new object[2]
216 {
217 shaderModel >> 8,
218 shaderModel & 0xFFu
219 }, provider: CultureInfo.CurrentCulture, format: "{0}.{1}");
220 }
static CultureInfo CurrentCulture

References System.Globalization.CultureInfo.CurrentCulture, and System.format.

Referenced by Microsoft.Xna.Framework.Graphics.Effect.CreateEffectFromCode().