-
Notifications
You must be signed in to change notification settings - Fork 544
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
[LL] Make DX12 ~~great~~ compile again! #1297
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
src/backend/dx12ll/src/data.rs
Outdated
state = state | D3D12_RESOURCE_STATE_PRESENT; | ||
match layout { | ||
ImageLayout::Present => { | ||
state = state | D3D12_RESOURCE_STATE_PRESENT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D3D12_RESOURCE_STATE_PRESENT
is not a flag, it is actually 0!
https://msdn.microsoft.com/de-de/library/windows/desktop/dn986744(v=vs.85).aspx
edit: I just noticed that I did it wrong myself.. eh ResourceStates are one of the open problems left and for the moment we could just define them both (vulkan access and d3d12 states) for pipeline barriers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nicely spotted:)
Fixed now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now!
I like these new struct initializers.
@homu r=msiglreith |
📌 Commit 7d9f997 has been approved by |
[LL] Make DX12 ~~great~~ compile again! This is a big WIP work, but I think we can merge this at any point in order to minimize friction with other changes.
Oh snap, dxguid fails to compile on AppVeyor due to OOM. Might be related to the compiler bug folks have been discussing on IRC (cc @torkleyy). |
It is, it's a regression on nightly / beta. It's talked through as we speak AFAIK. |
☀️ Test successful - status |
This is a big WIP work, but I think we can merge this at any point in order to minimize friction with other changes.