vulkan: de-duplicate used textures
This commit is contained in:
parent
cf6016f61f
commit
8a3a377f61
3 changed files with 9 additions and 3 deletions
|
|
@ -66,6 +66,7 @@ pub struct VulkanImage {
|
|||
pub(super) shader_read_only_optimal_descriptor: Box<[u8]>,
|
||||
pub(super) descriptor_buffer_version: Cell<u64>,
|
||||
pub(super) descriptor_buffer_offset: Cell<DeviceSize>,
|
||||
pub(super) execution_version: Cell<u64>,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
|
||||
|
|
@ -452,6 +453,7 @@ impl VulkanDmaBufImageTemplate {
|
|||
.sampler_read_only_descriptor(texture_view),
|
||||
descriptor_buffer_version: Cell::new(0),
|
||||
descriptor_buffer_offset: Cell::new(0),
|
||||
execution_version: Cell::new(0),
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue