标签: directxtk

DirectX 12 应用程序在 Windows 11 中崩溃

我非常熟悉基于多个 DirectX 工具包示例构建的 DirectX 12 桌面 x64 应用程序,但现在还支持用于定向和全向阴影、动态反射、硬件实例粒子效果系统、FBX 模型骨骼动画的自定义着色器和景深后处理。

万圣节那天,Windows 更新将我的系统(Intel Core i7[第 8 代]/GeForce GTX1050)升级到 Windows 11。当我运行我的项目时,我收到了一个令人毛骨悚然的惊喜,其形式为以下“源不可用”窗口:

在此输入图像描述

Present()停止调试后,应用程序在调用DeviceResources.cpp时崩溃并生成以下错误:

D3D12 ERROR: ID3D12CommandQueue::Present: Resource state (0x800: D3D12_RESOURCE_STATE_COPY_SOURCE) (promoted from COMMON state) of resource (0x0000011BD5330080:'Render target 0') (subresource: 0) must be in COMMON state when transitioning to use in a different Command List type, because resource state on previous Command List type : D3D12_COMMAND_LIST_TYPE_COPY, is actually incompatible and different from that on the next Command List type : D3D12_COMMAND_LIST_TYPE_DIRECT. …
Run Code Online (Sandbox Code Playgroud)

directx-12 directxtk windows-11

2
推荐指数
1
解决办法
3666
查看次数

标签 统计

directx-12 ×1

directxtk ×1

windows-11 ×1