c++ 如何修复虚幻引擎4.11中的“Assert失败”

vwkv1x7d  于 2023-02-17  发布在  其他
关注(0)|答案(1)|浏览(168)

构建新源代码并运行UE_4.11.0的新安装后,加载100%,并创建100%的新项目,但在将项目加载到99%时,由于错误而崩溃。
日志:Assert失败:!b源深度写入||b目标深度写入[D:\UE4.11.0\引擎\源\运行时\Windows\D3D11RHI\专用\D3D11命令. 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);
    }
}
xa9qqrwz

xa9qqrwz1#

需要删除目录C中的所有内容:\用户\用户名\应用程序数据\本地\不真实引擎\引擎版本

相关问题