Axiom.Graphics.GpuProgramManager.IsSyntaxSupported C# (CSharp) Method

IsSyntaxSupported() public method

Returns whether a given syntax code (e.g. "ps_1_3", "fp20", "arbvp1") is supported.
public IsSyntaxSupported ( string syntaxCode ) : bool
syntaxCode string
return bool
		public bool IsSyntaxSupported( string syntaxCode )
		{
        	// Use the current render system
        	  var rs =  Root.Instance.RenderSystem;

            // Get the supported syntaxed from RenderSystemCapabilities 
            return rs.Capabilities.IsShaderProfileSupported(syntaxCode);
		}