mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 14:56:42 +00:00
Fix wrong image layouts for attachments and swapchain images
This commit is contained in:
parent
1b1f489b80
commit
f774878e69
@ -226,22 +226,22 @@ unsafe impl<F: 'static> ImageView for AttachmentImage<F> {
|
||||
|
||||
#[inline]
|
||||
fn descriptor_set_storage_image_layout(&self) -> Layout {
|
||||
Layout::ColorAttachmentOptimal
|
||||
Layout::ShaderReadOnlyOptimal
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn descriptor_set_combined_image_sampler_layout(&self) -> Layout {
|
||||
Layout::ColorAttachmentOptimal
|
||||
Layout::ShaderReadOnlyOptimal
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn descriptor_set_sampled_image_layout(&self) -> Layout {
|
||||
Layout::ColorAttachmentOptimal
|
||||
Layout::ShaderReadOnlyOptimal
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn descriptor_set_input_attachment_layout(&self) -> Layout {
|
||||
Layout::ColorAttachmentOptimal
|
||||
Layout::ShaderReadOnlyOptimal
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -179,22 +179,22 @@ unsafe impl ImageView for SwapchainImage {
|
||||
|
||||
#[inline]
|
||||
fn descriptor_set_storage_image_layout(&self) -> Layout {
|
||||
Layout::ColorAttachmentOptimal
|
||||
Layout::ShaderReadOnlyOptimal
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn descriptor_set_combined_image_sampler_layout(&self) -> Layout {
|
||||
Layout::ColorAttachmentOptimal
|
||||
Layout::ShaderReadOnlyOptimal
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn descriptor_set_sampled_image_layout(&self) -> Layout {
|
||||
Layout::ColorAttachmentOptimal
|
||||
Layout::ShaderReadOnlyOptimal
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn descriptor_set_input_attachment_layout(&self) -> Layout {
|
||||
Layout::ColorAttachmentOptimal
|
||||
Layout::ShaderReadOnlyOptimal
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
Loading…
Reference in New Issue
Block a user