浏览代码

Do some fixes

/tag-1.1.4-preview
Sebastien Lagarde 7 年前
当前提交
273759a7
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs

8
ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs


DebugDisplaySettings m_CurrentDebugDisplaySettings;
RTHandle m_DebugColorPickerBuffer;
RTHandle m_DebugFullScreenTempBuffer;
bool m_FullScreenDebugPushm_NoRenderinged;
bool m_FullScreenDebugPushed;
bool m_NoRendering; // False by default mean we render normally, true mean we don't render anything
public Material GetBlitMaterial() { return m_Blit; }

return true;
}
// if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Metal)
if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Metal)
string os = "Mac OS X 10.10.4";// SystemInfo.operatingSystem;
string os = SystemInfo.operatingSystem;
// For metal support depends on OS version
// 10.11 doesn�t have tessellation + few other shader language features, unusable
// 10.12.x has some luck with AMD but mostly it�s a support hell

// TODO: Expose in C# version number, for now assume "Mac OS X 10.10.4" format with version 10 at least
int startIndex = os.LastIndexOf(" ");
var parts = os.Substring(startIndex).Split('.');
var parts = os.Substring(startIndex + 1).Split('.');
int a = Convert.ToInt32(parts[0]);
int b = Convert.ToInt32(parts[1]);
int c = Convert.ToInt32(parts[2]);

正在加载...
取消
保存