public GPUIComputeThreadCount GetComputeThreadCount(GPUIPlatform platform) { if (hasCustomRenderingSettings && customRenderingSettings != null) { return(customRenderingSettings.computeThreadCount); } for (int i = 0; i < renderingSettingPresets.Count; i++) { if (renderingSettingPresets[i].platform == platform) { return(renderingSettingPresets[i].computeThreadCount); } } return(GPUIComputeThreadCount.x1024); }
public GPUIMatrixHandlingType GetMatrixHandlingType(GPUIPlatform platform) { if (hasCustomRenderingSettings && customRenderingSettings != null) { return(customRenderingSettings.matrixHandlingType); } for (int i = 0; i < renderingSettingPresets.Count; i++) { if (renderingSettingPresets[i].platform == platform) { return(renderingSettingPresets[i].matrixHandlingType); } } return(GPUIMatrixHandlingType.Default); }