构建全新源并运行 UE_4.11.0 全新安装后,它加载 100%,新项目创建 100%,但在将项目加载到 99% 时,它崩溃并出现错误。
日志:断言失败:!bSrcDepthWrite || bDstDepth写 [D:\UE4.11.0\Engine\Source\Runtime\Windows\D3D11RHI\Private\D3D11Commands.cpp [行:715]
D3D11Commands.cpp源代码
void FD3D11DynamicRHI::ValidateExclusiveDepthStencilAccess(FExclusiveDepthStencil RequestedAccess) const
{
const bool bSrcDepthWrite = RequestedAccess.IsDepthWrite();
const bool bSrcStencilWrite = RequestedAccess.IsStencilWrite();
if (bSrcDepthWrite || bSrcStencilWrite)
{
// New Rule: You have to call SetRenderTarget[s]() before
ensure(CurrentDepthTexture);
const bool bDstDepthWrite = CurrentDSVAccessType.IsDepthWrite();
const bool bDstStencilWrite = CurrentDSVAccessType.IsStencilWrite();
// requested access is not possible, fix SetRenderTarget EExclusiveDepthStencil or request a different one
check(!bSrcDepthWrite || bDstDepthWrite); // Line: 715
check(!bSrcStencilWrite || bDstStencilWrite);
}
}
需要从目录 C:\Users\UserName\AppData\Local\UnrealEngine\EngineVersion 中删除所有内容