Skip to content

[ll] Heap types and device capabilities #1385

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

Merged
merged 3 commits into from
Jul 19, 2017
Merged

[ll] Heap types and device capabilities #1385

merged 3 commits into from
Jul 19, 2017

Conversation

kvark
Copy link
Member

@kvark kvark commented Jul 19, 2017

Fixes #1379
Closes #1381

@kvark kvark requested a review from msiglreith July 19, 2017 19:55
@kvark kvark changed the title Heap types and device capabilities [ll] Heap types and device capabilities Jul 19, 2017
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!

@@ -123,6 +135,8 @@ pub struct Device<R: Resources, F: Factory<R>, Q: CommandQueue> {
pub transfer_queues: Vec<TransferQueue<Q>>,
pub heap_types: Vec<HeapType>,
pub memory_heaps: Vec<u64>,
/// Device capabilities
pub caps: Capabilities,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we already have access to these capabilities from Adapter?
So users could have more control about which device to open beside the current AdapterInfo.

Copy link
Member Author

Choose a reason for hiding this comment

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

That was my original design, but unfortunately D3D12 only queries those via D3D12Device, which we only get in open(), so I had to move stuff under Device. Anyhow, I'll be happy to revise this later.

@kvark kvark merged commit 1f7bbd7 into gfx-rs:master Jul 19, 2017
@kvark kvark deleted the dx12 branch July 19, 2017 20:59
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.

2 participants