예제 #1
0
 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);
 }
예제 #2
0
 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);
 }