如何解决如何在虚幻引擎4.11中修复“声明失败”
构建完新鲜源并运行UE_4.11.0的全新安装后,它将加载100%,并创建了100%的新项目,但是在将项目加载到99%时,它崩溃并显示错误。
LOG:断言失败:!bSrcDepthWrite || bDstDepthWrite [D:\ UE4.11.0 \ Engine \ Source \ Runtime \ Windows \ D3D11RHI \ Private \ D3D11Commands.cpp [Line: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);
}
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。