boolm_NoRendering;// False by default mean we render normally, true mean we don't render anything
publicMaterialGetBlitMaterial(){returnm_Blit;}
{
Debug.LogError("High Definition Render Pipeline doesn't support Gamma mode, change to Linear mode");
}
m_NoRendering=false;
if(!IsSupportedPlatform())
{
Debug.LogError("Platform "+SystemInfo.operatingSystem+" with device "+SystemInfo.graphicsDeviceType.ToString()+" is not supported, no rendering will occur");
// macOS 10.11.x doesn't have tessellation / earlydepthstencil support, early driver versions were buggy in general
// macOS 10.12.x should usually work with AMD, but issues with Intel/Nvidia GPUs. Regardless of the GPU, there are issues with MTLCompilerService crashing with some shaders
// macOS 10.13.x is expected to work, and if it's a driver/shader compiler issue, there's still hope on getting it fixed to next shipping OS patch release
//
// Has worked experimentally with iOS in the past, but it's not currently supported
//
if(os.StartsWith("Mac"))
{
// TODO: Expose in C# version number, for now assume "Mac OS X 10.10.4" format with version 10 at least
intstartIndex=os.LastIndexOf(" ");
varparts=os.Substring(startIndex+1).Split('.');
inta=Convert.ToInt32(parts[0]);
intb=Convert.ToInt32(parts[1]);
// In case in the future there's a need to disable specific patch releases