Exemplo n.º 1
0
        /// <summary>
        /// Add a rule which manually influences the support for this technique based
	    /// on a GPU vendor.
        /// </summary>
        /// <remarks>
        /// You can use this facility to manually control whether a technique is
	    /// considered supported, based on a GPU vendor. You can add inclusive
		/// or exclusive rules, and you can add as many of each as you like. If
		///	at least one inclusive rule is added, a	technique is considered 
		///	unsupported if it does not match any of those inclusive rules. If exclusive rules are
		///	added, the technique is considered unsupported if it matches any of
		///	those inclusive rules.
        ///	Note that any rule for the same vendor will be removed before adding this one.
        ///	/// </remarks>
        /// <param name="rule"></param>
        internal void AddGPUVenderRule( GPUVendorRule rule )
        {
            // remove duplicates
            RemoveGPUVendorRule( rule );
            _GPUVendorRules.Add( rule );
        }
Exemplo n.º 2
0
 /// <summary>
 /// Removes a matching vendor rule.
 /// </summary>
 /// <see cref="AddGPUVenderRule"/>
 /// <param name="rule"></param>
 internal void RemoveGPUVendorRule( GPUVendorRule rule )
 {
     if ( _GPUVendorRules.Contains( rule ) )
         _GPUVendorRules.Remove( rule );
 }
Exemplo n.º 3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GPUVendorRule obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }