vulkan: don't create sampled-image descriptor for images without sample usage
This commit is contained in:
parent
2fb26331c2
commit
b22ec9a1fa
4 changed files with 23 additions and 11 deletions
|
|
@ -476,7 +476,7 @@ impl VulkanRenderer {
|
|||
}),
|
||||
ty: VulkanImageMemory::Internal(shm),
|
||||
bridge: None,
|
||||
sampled_image_descriptor: self.sampled_image_descriptor(view),
|
||||
sampled_image_descriptor: self.sampled_image_descriptor(usage, view),
|
||||
execution_version: Cell::new(0),
|
||||
});
|
||||
let shm = match &img.ty {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue