Skip to content

Commit

Permalink
Fix format and tiling of frame image, fix format of internal image we…
Browse files Browse the repository at this point in the history
… use
  • Loading branch information
maximbaz committed Oct 21, 2024
1 parent 80b41ba commit caf9da6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/frame/vulkan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl Vulkan {

let image_create_info = vk::ImageCreateInfo::default()
.image_type(vk::ImageType::TYPE_2D)
.format(vk::Format::B8G8R8A8_UNORM)
.format(vk::Format::R8G8B8A8_UNORM)
.extent(vk::Extent3D {
width,
height,
Expand Down Expand Up @@ -299,15 +299,15 @@ impl Vulkan {
let frame_image_create_info = vk::ImageCreateInfo::default()
.push_next(&mut frame_image_memory_info)
.image_type(vk::ImageType::TYPE_2D)
.format(vk::Format::R8G8B8A8_UNORM)
.format(vk::Format::B8G8R8A8_UNORM)
.extent(vk::Extent3D {
width: frame.width,
height: frame.height,
depth: 1,
})
.mip_levels(1)
.array_layers(1)
.tiling(vk::ImageTiling::OPTIMAL)
.tiling(vk::ImageTiling::LINEAR)
.initial_layout(vk::ImageLayout::UNDEFINED)
.samples(vk::SampleCountFlags::TYPE_1)
.usage(vk::ImageUsageFlags::TRANSFER_SRC)
Expand Down

0 comments on commit caf9da6

Please sign in to comment.