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

[LL] Make DX12 ~~great~~ compile again! #1297

Merged
merged 1 commit into from
Jun 8, 2017
Merged

[LL] Make DX12 ~~great~~ compile again! #1297

merged 1 commit into from
Jun 8, 2017

Conversation

kvark
Copy link
Member

@kvark kvark commented Jun 8, 2017

This is a big WIP work, but I think we can merge this at any point in order to minimize friction with other changes.

@kvark kvark requested a review from msiglreith June 8, 2017 18:30
Copy link
Contributor

@msiglreith msiglreith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

state = state | D3D12_RESOURCE_STATE_PRESENT;
match layout {
ImageLayout::Present => {
state = state | D3D12_RESOURCE_STATE_PRESENT;
Copy link
Contributor

@msiglreith msiglreith Jun 8, 2017

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nicely spotted:)

@kvark
Copy link
Member Author

kvark commented Jun 8, 2017

Fixed now

Copy link
Contributor

@msiglreith msiglreith left a 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.

@kvark
Copy link
Member Author

kvark commented Jun 8, 2017

@homu r=msiglreith

@homu
Copy link
Contributor

homu commented Jun 8, 2017

📌 Commit 7d9f997 has been approved by msiglreith

@homu
Copy link
Contributor

homu commented Jun 8, 2017

⌛ Testing commit 7d9f997 with merge a0d9b7e...

homu added a commit that referenced this pull request Jun 8, 2017
[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.
@kvark
Copy link
Member Author

kvark commented Jun 8, 2017

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).

@torkleyy
Copy link
Contributor

torkleyy commented Jun 8, 2017

It is, it's a regression on nightly / beta. It's talked through as we speak AFAIK.

@homu
Copy link
Contributor

homu commented Jun 8, 2017

☀️ Test successful - status

@homu homu merged commit 7d9f997 into gfx-rs:master Jun 8, 2017
@kvark kvark deleted the bind branch October 17, 2017 14:40
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

Successfully merging this pull request may close these issues.

4 participants