Struct ash::vk::definitions::PipelineColorBlendStateCreateInfo
source · #[repr(C)]pub struct PipelineColorBlendStateCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: PipelineColorBlendStateCreateFlags,
pub logic_op_enable: Bool32,
pub logic_op: LogicOp,
pub attachment_count: u32,
pub p_attachments: *const PipelineColorBlendAttachmentState,
pub blend_constants: [f32; 4],
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *const c_void
§flags: PipelineColorBlendStateCreateFlags
§logic_op_enable: Bool32
§logic_op: LogicOp
§attachment_count: u32
§p_attachments: *const PipelineColorBlendAttachmentState
§blend_constants: [f32; 4]
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> PipelineColorBlendStateCreateInfo<'a>
impl<'a> PipelineColorBlendStateCreateInfo<'a>
pub fn flags(self, flags: PipelineColorBlendStateCreateFlags) -> Self
pub fn logic_op_enable(self, logic_op_enable: bool) -> Self
pub fn logic_op(self, logic_op: LogicOp) -> Self
pub fn attachments( self, attachments: &'a [PipelineColorBlendAttachmentState], ) -> Self
pub fn blend_constants(self, blend_constants: [f32; 4]) -> Self
sourcepub fn push_next<T: ExtendsPipelineColorBlendStateCreateInfo + ?Sized>(
self,
next: &'a mut T,
) -> Self
pub fn push_next<T: ExtendsPipelineColorBlendStateCreateInfo + ?Sized>( self, next: &'a mut T, ) -> Self
Prepends the given extension struct between the root and the first pointer. This
method only exists on structs that can be passed to a function directly. Only
valid extension structs can be pushed into the chain.
If the chain looks like A -> B -> C
, and you call x.push_next(&mut D)
, then the
chain will look like A -> D -> B -> C
.
Trait Implementations§
source§impl<'a> Clone for PipelineColorBlendStateCreateInfo<'a>
impl<'a> Clone for PipelineColorBlendStateCreateInfo<'a>
source§fn clone(&self) -> PipelineColorBlendStateCreateInfo<'a>
fn clone(&self) -> PipelineColorBlendStateCreateInfo<'a>
Returns a copy 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<'a> Debug for PipelineColorBlendStateCreateInfo<'a>
impl<'a> Debug for PipelineColorBlendStateCreateInfo<'a>
source§impl Default for PipelineColorBlendStateCreateInfo<'_>
impl Default for PipelineColorBlendStateCreateInfo<'_>
source§impl<'a> TaggedStructure for PipelineColorBlendStateCreateInfo<'a>
impl<'a> TaggedStructure for PipelineColorBlendStateCreateInfo<'a>
const STRUCTURE_TYPE: StructureType = StructureType::PIPELINE_COLOR_BLEND_STATE_CREATE_INFO
impl<'a> Copy for PipelineColorBlendStateCreateInfo<'a>
impl Send for PipelineColorBlendStateCreateInfo<'_>
impl Sync for PipelineColorBlendStateCreateInfo<'_>
Auto Trait Implementations§
impl<'a> Freeze for PipelineColorBlendStateCreateInfo<'a>
impl<'a> RefUnwindSafe for PipelineColorBlendStateCreateInfo<'a>
impl<'a> Unpin for PipelineColorBlendStateCreateInfo<'a>
impl<'a> UnwindSafe for PipelineColorBlendStateCreateInfo<'a>
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