Esempio n. 1
0
        /// <summary>
        /// Checks if the specified technique in the effect is valid.
        /// </summary>
        /// <param name="name">The name of the technique to validate.</param>
        /// <returns>Whether the technique is valid.</returns>
        public bool ValidateTechnique(string name)
        {
            bool result = false;

            D3D.EffectHandle technique = _effect.GetTechnique(name);

            if (technique != null)
            {
                result = _effect.IsTechniqueValid(technique);
            }

            return(result);
        }