microsoft / microsoft/DirectX-Graphics-Samples
D3D12nBodyGravity debug layer error
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 6.8k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Opened the D3D12nBodyGravity project in VS and ran with F5 and saw this error in output window:
D3D12 ERROR: ID3D12CommandQueue::ExecuteCommandLists: Resource(0x000002AFEFEED460:'m_particleBuffer0[0]') (subresource : 0) was bound as DATA_STATIC on Command List 0x000002AFEB7B5C70:'m_commandList', still in execution (ExecuteCommandLists) by Command Queue 0x000002AFEB6BA200:'m_commandQueue'. It is invalid to change it until the command list has finished executing for the last time, but there is a state transition to (0x40: D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE) here, which indicates a change to its data (or possibly resource metadata). [ EXECUTION ERROR #1002: DATA_STATIC_DESCRIPTOR_INVALID_DATA_CHANGE]
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the D3D12nBodyGravity project in Visual Studio and reproduce the issue with F5, then read the Output window for the debug-layer error involving m_particleBuffer0[0], m_commandList, and m_commandQueue. Trace the resource's execution and state transition handling; done means the reported DATA_STATIC_DESCRIPTOR_INVALID_DATA_CHANGE error no longer appears.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100