Improve sample count flags

This commit is contained in:
hodasemi 2024-03-22 12:07:40 +01:00
parent 0ce12f2c7d
commit 23d0adbc03
2 changed files with 1 additions and 7 deletions

View file

@ -15,7 +15,7 @@ pub enum VkSampleCountFlags {
impl From<u32> for VkSampleCountFlags {
fn from(n: u32) -> Self {
match n {
1 => Self::VK_SAMPLE_COUNT_1_BIT,
0 | 1 => Self::VK_SAMPLE_COUNT_1_BIT,
2 => Self::VK_SAMPLE_COUNT_2_BIT,
4 => Self::VK_SAMPLE_COUNT_4_BIT,
8 => Self::VK_SAMPLE_COUNT_8_BIT,

View file

@ -29,12 +29,8 @@ pub use super::computepipelinecreateinfo::*;
pub use super::copydescriptorset::*;
pub use super::debugreportcallbackcreateinfoext::*;
pub use super::debugutilmessengercallbackdataext::*;
pub use super::debugutilmessengercallbackdataext::*;
pub use super::debugutilslabelext::*;
pub use super::debugutilslabelext::*;
pub use super::debugutilsmessengercreateinfoext::*;
pub use super::debugutilsmessengercreateinfoext::*;
pub use super::debugutilsobjectnameinfoext::*;
pub use super::debugutilsobjectnameinfoext::*;
pub use super::descriptorbufferinfo::*;
pub use super::descriptorimageinfo::*;
@ -73,7 +69,6 @@ pub use super::imagesubresourcelayers::*;
pub use super::imagesubresourcerange::*;
pub use super::imageviewcreateinfo::*;
pub use super::instancecreateinfo::*;
pub use super::instancecreateinfo::*;
pub use super::iossurfacecreateinfomvk::*;
pub use super::layerproperties::*;
pub use super::macossurfacecreateinfomvk::*;
@ -89,7 +84,6 @@ pub use super::mvkswapchainperformance::*;
pub use super::offset2d::*;
pub use super::offset3d::*;
pub use super::physicaldevicefeatures::*;
pub use super::physicaldevicefeatures::*;
pub use super::physicaldevicelimits::*;
pub use super::physicaldevicemaintanence3properties::*;
pub use super::physicaldevicememoryproperties::*;