mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-26 00:34:19 +00:00
Add more usage info for allocators (#2069)
This commit is contained in:
parent
d1b35c0385
commit
a5942a8d27
@ -113,6 +113,7 @@ pub unsafe trait CommandBufferAlloc: DeviceOwned + Send + Sync + 'static {
|
||||
///
|
||||
/// The intended way to use this allocator is to have one that is used globally for the duration of
|
||||
/// the program, in order to avoid creating and destroying [`CommandPool`]s, as that is expensive.
|
||||
/// Alternatively, you can have one locally on a thread for the duration of the thread.
|
||||
///
|
||||
/// Internally, this allocator keeps one or more `CommandPool`s per queue family index per thread,
|
||||
/// using Thread-Local Storage. When a thread first allocates, an entry is reserved for the thread
|
||||
|
@ -77,7 +77,7 @@ pub trait DescriptorSetAlloc: Send + Sync {
|
||||
///
|
||||
/// The intended way to use this allocator is to have one that is used globally for the duration of
|
||||
/// the program, in order to avoid creating and destroying [`DescriptorPool`]s, as that is
|
||||
/// expensive.
|
||||
/// expensive. Alternatively, you can have one locally on a thread for the duration of the thread.
|
||||
///
|
||||
/// Internally, this allocator uses one or more `DescriptorPool`s per descriptor set layout per
|
||||
/// thread, using Thread-Local Storage. When a thread first allocates, an entry is reserved for the
|
||||
|
Loading…
Reference in New Issue
Block a user