浏览代码

Better warning message for MSAA and UAV

/main
Sebastien Lagarde 7 年前
当前提交
3f6226b8
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 9
      ScriptableRenderPipeline/Core/CoreRP/RTHandle.cs

9
ScriptableRenderPipeline/Core/CoreRP/RTHandle.cs


bindTextureMS = false;
}
// MSAA Does not support random read/write.
if (allocForMSAA && enableRandomWrite == true)
{
Debug.LogWarning("RTHandle allocated with MSAA can't be enableRandomWrite.");
enableRandomWrite = false;
}
bool UAV = allocForMSAA ? false : enableRandomWrite; // MSAA Does not support random read/write.
bool UAV = enableRandomWrite;
RTCategory category = allocForMSAA ? RTCategory.MSAA : RTCategory.Regular;
var rt = new RenderTexture(width, height, (int)depthBufferBits, colorFormat, sRGB ? RenderTextureReadWrite.sRGB : RenderTextureReadWrite.Linear)

正在加载...
取消
保存