Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify swapchain image initial EB layout #144

Open
jeremyong opened this issue Jul 14, 2023 · 2 comments
Open

Clarify swapchain image initial EB layout #144

jeremyong opened this issue Jul 14, 2023 · 2 comments

Comments

@jeremyong
Copy link
Contributor

I believe it's clear that swapchain images are retrieved in the D3D12_BARRIER_LAYOUT_COMMON layout, given that with legacy resources, I believe they started in the equivalently mapped D3D12_RESOURCE_STATE_COMMON, but for engineers learning DX12 starting from enhanced barriers in the future without legacy resource state experience, it may be worth mentioning swapchain images in the EB spec for completeness. Thanks!

@jeremyong jeremyong changed the title Clarify swapchain image initial barrier layout Clarify swapchain image initial EB layout Jul 14, 2023
@billkris-ms
Copy link
Contributor

Thank you @jeremyong. This is a good suggestion. I'll update the spec shortly.

@jeremyong
Copy link
Contributor Author

Thanks! The change looks good. On the subject of presentation and the swapchain, I suppose there is perhaps some implicit synchronization happening after command list execution and IDXGISwapchain::Present also? It's something I've been used to with DirectX APIs, but I'll note the lack of any explicit barrier needed prior to presentation (compare to Vulkan where there is this notion of an "external" dependency).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants