microsoft / microsoft/DirectX-Graphics-Samples
Wrong stateAfter when uploading GPU resources
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 6.8k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Current state: D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE
Probably should be D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE because the structured buffer is only used in the mesh shader.
Model.cpp
Line 464 - 474
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 Model.cpp and inspect lines 464-474, then trace how the structured buffer is used by the mesh shader. Confirm the intended resource state for that usage and check the surrounding upload transition. Done means the stateAfter value matches the buffer's shader access without affecting other GPU resource transitions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100