pub struct Blend {
pub logic_op: Option<LogicOp>,
pub attachments: AttachmentsBlend,
pub blend_constants: Option<[f32; 4]>,
}
Expand description
Describes how the color output of the fragment shader is written to the attachment. See the
documentation of the blend
module for more info.
Fields
logic_op: Option<LogicOp>
attachments: AttachmentsBlend
blend_constants: Option<[f32; 4]>
The constant color to use for the Constant*
blending operation.
If you pass None
, then this state will be considered as dynamic and the blend constants
will need to be set when you build the command buffer.
Implementations
sourceimpl Blend
impl Blend
sourcepub fn pass_through() -> Blend
pub fn pass_through() -> Blend
Returns a Blend
object that directly writes colors and alpha on the surface.
sourcepub fn alpha_blending() -> Blend
pub fn alpha_blending() -> Blend
Returns a Blend
object that adds transparent objects over others.
Trait Implementations
impl StructuralPartialEq for Blend
Auto Trait Implementations
impl RefUnwindSafe for Blend
impl Send for Blend
impl Sync for Blend
impl Unpin for Blend
impl UnwindSafe for Blend
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.