/// <summary> /// Add a rule which manually influences the support for this technique based /// on a pattern that matches a GPU device name (e.g. '*8800*'). /// </summary> /// <remarks> /// You can use this facility to manually control whether a technique is /// considered supported, based on a GPU device name pattern. 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. The pattern you supply can include wildcard /// characters ('*') if you only want to match part of the device name. /// Note that any rule for the same device pattern will be removed before adding this one. /// </remarks> /// <param name="rule"></param> internal void AddGPUDeviceNameRule( GPUDeviceNameRule rule ) { // remove duplicates RemoveGPUDeviceNameRule( rule ); _GPUDeviceNameRules.Add( rule ); }
/// <summary> /// Removes a matching device name rule. /// </summary> /// <see cref="AddGPUDeviceNameRule"/> /// <param name="rule"></param> internal void RemoveGPUDeviceNameRule( GPUDeviceNameRule rule ) { if ( _GPUDeviceNameRules.Contains( rule ) ) _GPUDeviceNameRules.Remove( rule ); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(GPUDeviceNameRule obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }