Skip to content

Commit

Permalink
Fix bugs identified by unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gwihlidal committed Aug 26, 2018
1 parent 2ee45b0 commit 07e5fc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ pub fn get_image_memory_barrier(
}
};

image_barrier.old_layout = layout;
image_barrier.new_layout = layout;
}

// Ensure that the stage masks are valid if no stages were determined
Expand Down Expand Up @@ -512,12 +512,12 @@ pub(crate) fn get_access_info(access_type: &AccessType) -> AccessInfo {
},
AccessType::VertexShaderReadSampledImageOrUniformTexelBuffer => AccessInfo {
stage_mask: ash::vk::PIPELINE_STAGE_VERTEX_SHADER_BIT,
access_mask: ash::vk::ACCESS_MEMORY_READ_BIT,
image_layout: ash::vk::ImageLayout::Undefined,
access_mask: ash::vk::ACCESS_SHADER_READ_BIT,
image_layout: ash::vk::ImageLayout::ShaderReadOnlyOptimal,
},
AccessType::VertexShaderReadOther => AccessInfo {
stage_mask: ash::vk::PIPELINE_STAGE_VERTEX_SHADER_BIT,
access_mask: ash::vk::ACCESS_MEMORY_READ_BIT,
access_mask: ash::vk::ACCESS_SHADER_READ_BIT,
image_layout: ash::vk::ImageLayout::General,
},
AccessType::TessellationControlShaderReadUniformBuffer => AccessInfo {
Expand Down

0 comments on commit 07e5fc6

Please sign in to comment.