Skip to content

Commit

Permalink
Applied patch from diaphore.
Browse files Browse the repository at this point in the history
  • Loading branch information
samizzo committed Feb 22, 2017
1 parent c2b838f commit 76fc9e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 8 additions & 2 deletions NShaderVS/NShader.cs
Expand Up @@ -104,11 +104,17 @@ namespace NShader
[ProvideLanguageExtension(typeof(NShaderLanguageService), NShaderSupportedExtensions.GLSL_XSH)]

[ProvideEditorExtension(typeof(NShaderEditorFactory), NShaderSupportedExtensions.GLSL_COMP, 32, NameResourceID = 115)]
[ProvideLanguageExtension(typeof(NShaderLanguageService), NShaderSupportedExtensions.GLSL_COMP)]

[ProvideLanguageExtension(typeof(NShaderLanguageService), NShaderSupportedExtensions.GLSL_COMP)]

[ProvideEditorExtension(typeof(NShaderEditorFactory), NShaderSupportedExtensions.GLSL_SFX, 32, NameResourceID = 115)]
[ProvideLanguageExtension(typeof(NShaderLanguageService), NShaderSupportedExtensions.GLSL_SFX)]

[ProvideEditorExtension(typeof(NShaderEditorFactory), NShaderSupportedExtensions.GLSL_TESC, 32, NameResourceID = 115)]
[ProvideLanguageExtension(typeof(NShaderLanguageService), NShaderSupportedExtensions.GLSL_TESC)]

[ProvideEditorExtension(typeof(NShaderEditorFactory), NShaderSupportedExtensions.GLSL_TESE, 32, NameResourceID = 115)]
[ProvideLanguageExtension(typeof(NShaderLanguageService), NShaderSupportedExtensions.GLSL_TESE)]

[ProvideEditorExtension(typeof(NShaderEditorFactory), NShaderSupportedExtensions.CG_CG, 32, NameResourceID = 115)]
[ProvideLanguageExtension(typeof(NShaderLanguageService), NShaderSupportedExtensions.CG_CG)]

Expand Down
6 changes: 4 additions & 2 deletions NShaderVS/NShaderSupportedExtensions.cs
Expand Up @@ -30,7 +30,7 @@ public class NShaderSupportedExtensions
public const string HLSL_VSH = ".vsh";
public const string HLSL_FSH = ".fsh";
public const string HLSL_PSH = ".psh";
public const string HLSL_USF = ".usf";
public const string HLSL_USF = ".usf";
public const string HLSL_SLFX = ".slfx";

// GLSL file extensions
Expand All @@ -41,8 +41,10 @@ public class NShaderSupportedExtensions
public const string GLSL_GEOM = ".geom";
public const string GLSL_GLSL = ".glsl";
public const string GLSL_XSH = ".xsh";
public const string GLSL_COMP = ".comp";
public const string GLSL_COMP = ".comp";
public const string GLSL_SFX = ".sfx";
public const string GLSL_TESC = ".tesc";
public const string GLSL_TESE = ".tese";

// CG file extensions
public const string CG_CG = ".cg";
Expand Down

0 comments on commit 76fc9e7

Please sign in to comment.