浏览代码

Merge remote-tracking branch 'refs/remotes/origin/master' into Add-FullScreeMedia-path

/main
sebastienlagarde 6 年前
当前提交
c7c2adef
共有 2 个文件被更改,包括 15 次插入8 次删除
  1. 12
      ScriptableRenderPipeline/Core/CoreRP/Utilities/CoreUtils.cs
  2. 11
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs

12
ScriptableRenderPipeline/Core/CoreRP/Utilities/CoreUtils.cs


mesh.triangles = triangles;
return mesh;
}
public static void DisplayUnsupportedAPIMessage()
{
Debug.LogError("Platform " + SystemInfo.operatingSystem + " with device " + SystemInfo.graphicsDeviceType.ToString() + " is not supported, no rendering will occur");
#if UNITY_EDITOR
foreach (UnityEditor.SceneView sv in Resources.FindObjectsOfTypeAll(typeof(UnityEditor.SceneView)))
sv.ShowNotification(new GUIContent("Platform " + SystemInfo.operatingSystem + " with device " + SystemInfo.graphicsDeviceType.ToString() + " is not supported, no rendering will occur"));
#endif
}
}
}

11
ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs


m_ValidAPI = false;
return ;
}
}
m_Asset = asset;
m_GPUCopy = new GPUCopy(asset.renderPipelineResources.copyChannelCS);

RTHandle.Release(m_DebugColorPickerBuffer);
RTHandle.Release(m_DebugFullScreenTempBuffer);
m_DebugScreenSpaceTracingData.Release();
}

if (!IsSupportedPlatform())
{
Debug.LogError("Platform " + SystemInfo.operatingSystem + " with device " + SystemInfo.graphicsDeviceType.ToString() + " is not supported, no rendering will occur");
#if UNITY_EDITOR
foreach (UnityEditor.SceneView sv in Resources.FindObjectsOfTypeAll(typeof(UnityEditor.SceneView)))
sv.ShowNotification(new GUIContent("Platform " + SystemInfo.operatingSystem + " with device " + SystemInfo.graphicsDeviceType.ToString() + " is not supported, no rendering will occur"));
#endif
CoreUtils.DisplayUnsupportedAPIMessage();
return false;
}

正在加载...
取消
保存