Skip to content

Commit

Permalink
Fixed image layout transition for non-sampled images
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Dec 2, 2024
1 parent c1b784f commit 4a7946d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lvk/vulkan/VulkanClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,7 @@ void lvk::CommandBuffer::transitionToShaderReadOnly(TextureHandle handle) const
}
// set the result of the previous render pass
img.transitionLayout(wrapper_->cmdBuf_,
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL,
img.isSampledImage() ? VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL : VK_IMAGE_LAYOUT_GENERAL,
srcStage,
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT | VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, // wait for subsequent
// fragment/compute shaders
Expand Down

0 comments on commit 4a7946d

Please sign in to comment.