-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reserved_bytes method for Allocator (#266)
* Change total_reserved_bytes to total_capacity_bytes in AllocatorReport The use of "reserved" may be confused with the concept of reserved memory in Dx12. Capacity is in line with the similar concept from (e.g.) std::vec::Vec. * Add capacity method for Allocator This fills the use case where one needs the total capacity given by the sum of sizes of all device-allocated memory blocks, but compiling a complete report (in particular due to the calls to report_allocations from the SubAllocator) would be too costly.
- Loading branch information
Showing
4 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters