hedge-dev / hedge-dev/UnleashedRecomp
Latest D3D12 Agility SDK breaks running Debug builds
Open
Nobody has claimed this yet.
- #1640 by @blueskythlikesclouds — closed without merging
- Dominant language
- C++
- Stars
- 5.1k
- Forks
- 421
- PR merge metrics
- No merged PRs in 30d
Description
The following validation error is triggered when running the game using the D3D12 backend on Debug builds. It triggers the moment the textures used for ImGui are trying to be loaded.
Agility SDK: 1.616.1
D3D12 ERROR: ID3D12CommandList::CopyTextureRegion: Barrier layout(D3D12_BARRIER_LAYOUT_LEGACY_COPY_DEST), pResource = 0x0000008008045BA0:'Unnamed ID3D12Resource Object', subresource = [0], does not match expected layout (D3D12_BARRIER_LAYOUT_COMMON) using D3D12_COMMAND_LIST_TYPE_COPY command list 0x00000080077F5B80:'Unnamed ID3D12GraphicsCommandList Object') in CopyTextureRegion for use as a destination resource [ STATE_SETTING ERROR #1334: INCOMPATIBLE_BARRIER_LAYOUT]
D3D12: **BREAK** enabled for the previous message, which was: [ ERROR STATE_SETTING #1334: INCOMPATIBLE_BARRIER_LAYOUT ]
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
Reproduce a Debug build using the D3D12 backend with Agility SDK 1.616.1 while the ImGui textures load, and inspect the texture upload path around CopyTextureRegion and its resource barriers. Done means the validation error no longer occurs during texture loading without regressing the D3D12 backend.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100