fn blend_factor(fc: BlendFactor) -> vk::BlendFactor {
                    match fc {
                        BlendFactor::Zero => return vk::BlendFactor::ZERO,
                        BlendFactor::One => return vk::BlendFactor::ONE,
                        BlendFactor::SrcColor => return vk::BlendFactor::SRC_COLOR,
                        BlendFactor::OneMinusSrcColor => {
                            return vk::BlendFactor::ONE_MINUS_SRC_COLOR
                        }
                        BlendFactor::DstColor => return vk::BlendFactor::DST_COLOR,
                        BlendFactor::OneMinusDstColor => {
                            return vk::BlendFactor::ONE_MINUS_DST_COLOR
                        }
                        BlendFactor::SrcAlpha => return vk::BlendFactor::SRC_ALPHA,
                        BlendFactor::OneMinusSrcAlpha => {
                            return vk::BlendFactor::ONE_MINUS_SRC_ALPHA
                        }
                    }
                }
// Setting up blending and converting data types
Setting up blending and converting data types
Setting up blending and converting data types
fn blend_factor(fc: BlendFactor) -> vk::BlendFactor {
                    match fc {
                        BlendFactor::Zero => return vk::BlendFactor::ZERO,
                        BlendFactor::One => return vk::BlendFactor::ONE,
                        BlendFactor::SrcColor => return vk::BlendFactor::SRC_COLOR,
                        BlendFactor::OneMinusSrcColor => {
                            return vk::BlendFactor::ONE_MINUS_SRC_COLOR
                        }
                        BlendFactor::DstColor => return vk::BlendFactor::DST_COLOR,
                        BlendFactor::OneMinusDstColor => {
                            return vk::BlendFactor::ONE_MINUS_DST_COLOR
                        }
                        BlendFactor::SrcAlpha => return vk::BlendFactor::SRC_ALPHA,
                        BlendFactor::OneMinusSrcAlpha => {
                            return vk::BlendFactor::ONE_MINUS_SRC_ALPHA
                        }
                    }
                }
fn blend_factor ( fc : BlendFactor ) -> vk :: BlendFactor { match fc { BlendFactor :: Zero => return vk :: BlendFactor :: ZERO , BlendFactor :: One => return vk :: BlendFactor :: ONE , BlendFactor :: SrcColor => return vk :: BlendFactor :: SRC_COLOR , BlendFactor :: OneMinusSrcColor => { return vk :: BlendFactor :: ONE_MINUS_SRC_COLOR } BlendFactor :: DstColor => return vk :: BlendFactor :: DST_COLOR , BlendFactor :: OneMinusDstColor => { return vk :: BlendFactor :: ONE_MINUS_DST_COLOR } BlendFactor :: SrcAlpha => return vk :: BlendFactor :: SRC_ALPHA , BlendFactor :: OneMinusSrcAlpha => { return vk :: BlendFactor :: ONE_MINUS_SRC_ALPHA } } }
Setting up blending and converting data types
Setting up blending and converting data types
fc
BlendFactor
fc
BlendFactor