Repository navigation
fix(gpu): transition shadow buffers before VB/IB binding - #1502
Thomas73737 wants to merge 1 commit into
Conversation
Track host state for shadow buffer copies and emit barriers in list preludes. Ensure vertex/index buffer bindings and buffer SRV/UAV descriptor reads use the expected D3D12 buffer states to avoid UAV-to-VB/IB validation errors.
|
Tested
Both runs end in Happy to run another build. |
|
Automated triage for the maintainers. Closing because another open pull request covers the same change. See #334. Buffer-copy state transitions as in #334, and by its own description not validated on Windows or any D3D12 device. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
Summary
VERTEX_AND_CONSTANT_BUFFER/INDEX_BUFFERbeforeIASetVertexBuffers/IASetIndexBuffer.SHADER_RESOURCE/UNORDERED_ACCESS.Why
Issue #445 reports a D3D12 debug-layer validation error where a resource in
D3D12_RESOURCE_STATE_UNORDERED_ACCESSis used as a vertex buffer, followed by device removal. Shadow buffer copies previously had no tracked host state/barrier path when bound as VB/IB.Validation
cargo check -p victory-gputimed out in this sandbox (120s, then 300s); compile not confirmed.Caveats