Skip to content

Commit

Permalink
Cache results of some PhysicalDevice methods for faster future retr…
Browse files Browse the repository at this point in the history
…ieval (#2006)

* Cache results of some `PhysicalDevice` methods for faster future retrieval

* Uh, derp

* MacOS fix

* Add missing validation

* One more validation check

* Use `RwLock` instead of `DashMap`
  • Loading branch information
Rua authored Oct 2, 2022
1 parent 3a83767 commit b958451
Show file tree
Hide file tree
Showing 7 changed files with 1,079 additions and 793 deletions.
2 changes: 1 addition & 1 deletion vulkano/src/buffer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ where

/// The buffer configuration to query in
/// [`PhysicalDevice::external_buffer_properties`](crate::device::physical::PhysicalDevice::external_buffer_properties).
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct ExternalBufferInfo {
/// The external handle type that will be used with the buffer.
pub handle_type: ExternalMemoryHandleType,
Expand Down
Loading

0 comments on commit b958451

Please # to comment.