mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2025-02-16 17:12:29 +00:00
Backport #2379 to 0.34.1
This commit is contained in:
parent
424753d543
commit
d27ac7efac
@ -196,8 +196,6 @@ struct FixedEntry {
|
|||||||
// The `FixedPool` struct contains an actual Vulkan pool. Every time it is full we create
|
// The `FixedPool` struct contains an actual Vulkan pool. Every time it is full we create
|
||||||
// a new pool and replace the current one with the new one.
|
// a new pool and replace the current one with the new one.
|
||||||
pool: Arc<FixedPool>,
|
pool: Arc<FixedPool>,
|
||||||
// The amount of sets available to use when we create a new Vulkan pool.
|
|
||||||
set_count: usize,
|
|
||||||
// The descriptor set layout that this pool is for.
|
// The descriptor set layout that this pool is for.
|
||||||
layout: Arc<DescriptorSetLayout>,
|
layout: Arc<DescriptorSetLayout>,
|
||||||
}
|
}
|
||||||
@ -209,7 +207,6 @@ impl FixedEntry {
|
|||||||
) -> Result<Self, Validated<VulkanError>> {
|
) -> Result<Self, Validated<VulkanError>> {
|
||||||
Ok(FixedEntry {
|
Ok(FixedEntry {
|
||||||
pool: FixedPool::new(&layout, create_info)?,
|
pool: FixedPool::new(&layout, create_info)?,
|
||||||
set_count: create_info.set_count,
|
|
||||||
layout,
|
layout,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -221,7 +218,6 @@ impl FixedEntry {
|
|||||||
let inner = if let Some(inner) = self.pool.reserve.pop() {
|
let inner = if let Some(inner) = self.pool.reserve.pop() {
|
||||||
inner
|
inner
|
||||||
} else {
|
} else {
|
||||||
self.set_count *= 2;
|
|
||||||
self.pool = FixedPool::new(&self.layout, create_info)?;
|
self.pool = FixedPool::new(&self.layout, create_info)?;
|
||||||
|
|
||||||
self.pool.reserve.pop().unwrap()
|
self.pool.reserve.pop().unwrap()
|
||||||
|
Loading…
Reference in New Issue
Block a user