msaa
This commit is contained in:
parent
b5d3864d01
commit
fdac5a97a1
4 changed files with 95 additions and 9 deletions
src
|
@ -62,6 +62,7 @@ pub unsafe fn create_texture_image(
|
|||
width,
|
||||
height,
|
||||
data.mip_levels,
|
||||
vk::SampleCountFlags::_1,
|
||||
vk::Format::R8G8B8A8_SRGB,
|
||||
vk::ImageTiling::OPTIMAL,
|
||||
vk::ImageUsageFlags::SAMPLED
|
||||
|
@ -116,6 +117,7 @@ pub unsafe fn create_image(
|
|||
width: u32,
|
||||
height: u32,
|
||||
mip_levels: u32,
|
||||
samples: vk::SampleCountFlags,
|
||||
format: vk::Format,
|
||||
tiling: vk::ImageTiling,
|
||||
usage: vk::ImageUsageFlags,
|
||||
|
@ -134,7 +136,7 @@ pub unsafe fn create_image(
|
|||
.tiling(tiling)
|
||||
.initial_layout(vk::ImageLayout::UNDEFINED)
|
||||
.usage(usage)
|
||||
.samples(vk::SampleCountFlags::_1)
|
||||
.samples(samples)
|
||||
.sharing_mode(vk::SharingMode::EXCLUSIVE);
|
||||
|
||||
let image = device.create_image(&info, None)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue