Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNumbat committed Apr 30, 2024
1 parent eaea7bb commit 66080d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rvk/memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,10 @@ void Image::to_buffer(Commands& commands, Buffer& buffer) {
};

VkCopyImageToBufferInfo2 copy_info = {
.sType = VK_STRUCTURE_TYPE_COPY_BUFFER_TO_IMAGE_INFO_2,
.sType = VK_STRUCTURE_TYPE_COPY_IMAGE_TO_BUFFER_INFO_2,
.pNext = null,
.srcImage = image,
.srcImageLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
.srcImageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL,
.dstBuffer = buffer,
.regionCount = 1,
.pRegions = &copy,
Expand Down

0 comments on commit 66080d5

Please sign in to comment.