microsoft / microsoft/DirectX-Graphics-Samples

Wrong stateAfter when uploading GPU resources

Open
#700 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug samples
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.