/// <summary> /// 通过厂商类型获取GPU厂商信息 /// </summary> /// <param name="vendorType">GPU厂商类型</param> /// <returns>GPU厂商信息</returns> public GPUVendor GetVendorModelsByVendorType(EGPUVendorType vendorType) { if (Vendors == null) { return(null); } for (int i = 0; i < Vendors.Length; i++) { GPUVendor vendor = Vendors[i]; if (vendor.VendorType == vendorType) { return(vendor); } } return(null); }
private AnalyzeStageBase getAnalyzeStage(EAnalyzeStageType stageType, EGPUVendorType vendorType) { Dictionary <EGPUVendorType, AnalyzeStageBase> stageDic; if (!AnalyzedStageMap.TryGetValue(m_CurrentStageType, out stageDic) || stageDic.Count == 0) { return(null); } if (stageDic.Count == 1) { return(stageDic[EGPUVendorType.None]); } AnalyzeStageBase stage; if (!stageDic.TryGetValue(vendorType, out stage)) { return(null); } return(stage); }
public AnalyzeVendorAttribute(EGPUVendorType vendor) { Vendor = vendor; }