Fix wrong image layouts for attachments and swapchain images

This commit is contained in:
Pierre Krieger 2016-03-28 18:56:48 +02:00
parent 1b1f489b80
commit f774878e69
2 changed files with 8 additions and 8 deletions

View File

@ -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]

View File

@ -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]