pub struct ColorBlendState {
pub flags: PipelineColorBlendStateCreateFlags,
pub logic_op: Option<LogicOp>,
pub attachments: Vec<PipelineColorBlendAttachmentState>,
pub blend_constants: [f32; 4],
}Expand description
Fields§
§flags: PipelineColorBlendStateCreateFlags§logic_op: Option<LogicOp>§attachments: Vec<PipelineColorBlendAttachmentState>§blend_constants: [f32; 4]Implementations§
Source§impl ColorBlendState
impl ColorBlendState
pub fn new_default(attachments: Vec<PipelineColorBlendAttachmentState>) -> Self
pub fn write_create_info_builder<'a>( &'a self, builder: PipelineColorBlendStateCreateInfoBuilder<'a>, ) -> PipelineColorBlendStateCreateInfoBuilder<'a>
pub fn create_info_builder( &self, ) -> PipelineColorBlendStateCreateInfoBuilder<'_>
pub fn blend_state_disabled() -> PipelineColorBlendAttachmentState
Sourcepub fn blend_state_ignore_source() -> PipelineColorBlendAttachmentState
pub fn blend_state_ignore_source() -> PipelineColorBlendAttachmentState
Returns vk::PipelineColorBlendAttachmentState where the output of the fragment shader is ignored and the
destination is untouched.
Sourcepub fn blend_state_additive() -> PipelineColorBlendAttachmentState
pub fn blend_state_additive() -> PipelineColorBlendAttachmentState
Returns vk::PipelineColorBlendAttachmentState where the colors are added, and alpha is set to the maximum of
the two.
Sourcepub unsafe fn from_create_info(
value: &PipelineColorBlendStateCreateInfo,
) -> Self
pub unsafe fn from_create_info( value: &PipelineColorBlendStateCreateInfo, ) -> Self
Safety:
- if
p_attachmentsis not null, it must point to an array ofattachment_countvalues
pub fn from_create_info_builder( value: &PipelineColorBlendStateCreateInfoBuilder<'_>, ) -> Self
Trait Implementations§
Source§impl Clone for ColorBlendState
impl Clone for ColorBlendState
Source§fn clone(&self) -> ColorBlendState
fn clone(&self) -> ColorBlendState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColorBlendState
impl Debug for ColorBlendState
Auto Trait Implementations§
impl Freeze for ColorBlendState
impl RefUnwindSafe for ColorBlendState
impl Send for ColorBlendState
impl Sync for ColorBlendState
impl Unpin for ColorBlendState
impl UnwindSafe for ColorBlendState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more