pub struct RenderPipelineColorAttachmentDescriptor(/* private fields */);Expand description
Descriptor for a render pipeline color attachment.
C++ equivalent: MTL4::RenderPipelineColorAttachmentDescriptor
Implementations§
Source§impl RenderPipelineColorAttachmentDescriptor
impl RenderPipelineColorAttachmentDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a RenderPipelineColorAttachmentDescriptor from a raw pointer.
Sourcepub fn pixel_format(&self) -> PixelFormat
pub fn pixel_format(&self) -> PixelFormat
Get the pixel format.
C++ equivalent: MTL::PixelFormat pixelFormat() const
Sourcepub fn set_pixel_format(&self, format: PixelFormat)
pub fn set_pixel_format(&self, format: PixelFormat)
Set the pixel format.
C++ equivalent: void setPixelFormat(MTL::PixelFormat)
Sourcepub fn blending_state(&self) -> BlendState
pub fn blending_state(&self) -> BlendState
Get the blending state.
C++ equivalent: BlendState blendingState() const
Sourcepub fn set_blending_state(&self, state: BlendState)
pub fn set_blending_state(&self, state: BlendState)
Set the blending state.
C++ equivalent: void setBlendingState(MTL4::BlendState)
Sourcepub fn source_rgb_blend_factor(&self) -> BlendFactor
pub fn source_rgb_blend_factor(&self) -> BlendFactor
Get the source RGB blend factor.
C++ equivalent: MTL::BlendFactor sourceRGBBlendFactor() const
Sourcepub fn set_source_rgb_blend_factor(&self, factor: BlendFactor)
pub fn set_source_rgb_blend_factor(&self, factor: BlendFactor)
Set the source RGB blend factor.
C++ equivalent: void setSourceRGBBlendFactor(MTL::BlendFactor)
Sourcepub fn destination_rgb_blend_factor(&self) -> BlendFactor
pub fn destination_rgb_blend_factor(&self) -> BlendFactor
Get the destination RGB blend factor.
C++ equivalent: MTL::BlendFactor destinationRGBBlendFactor() const
Sourcepub fn set_destination_rgb_blend_factor(&self, factor: BlendFactor)
pub fn set_destination_rgb_blend_factor(&self, factor: BlendFactor)
Set the destination RGB blend factor.
C++ equivalent: void setDestinationRGBBlendFactor(MTL::BlendFactor)
Sourcepub fn rgb_blend_operation(&self) -> BlendOperation
pub fn rgb_blend_operation(&self) -> BlendOperation
Get the RGB blend operation.
C++ equivalent: MTL::BlendOperation rgbBlendOperation() const
Sourcepub fn set_rgb_blend_operation(&self, operation: BlendOperation)
pub fn set_rgb_blend_operation(&self, operation: BlendOperation)
Set the RGB blend operation.
C++ equivalent: void setRgbBlendOperation(MTL::BlendOperation)
Sourcepub fn source_alpha_blend_factor(&self) -> BlendFactor
pub fn source_alpha_blend_factor(&self) -> BlendFactor
Get the source alpha blend factor.
C++ equivalent: MTL::BlendFactor sourceAlphaBlendFactor() const
Sourcepub fn set_source_alpha_blend_factor(&self, factor: BlendFactor)
pub fn set_source_alpha_blend_factor(&self, factor: BlendFactor)
Set the source alpha blend factor.
C++ equivalent: void setSourceAlphaBlendFactor(MTL::BlendFactor)
Sourcepub fn destination_alpha_blend_factor(&self) -> BlendFactor
pub fn destination_alpha_blend_factor(&self) -> BlendFactor
Get the destination alpha blend factor.
C++ equivalent: MTL::BlendFactor destinationAlphaBlendFactor() const
Sourcepub fn set_destination_alpha_blend_factor(&self, factor: BlendFactor)
pub fn set_destination_alpha_blend_factor(&self, factor: BlendFactor)
Set the destination alpha blend factor.
C++ equivalent: void setDestinationAlphaBlendFactor(MTL::BlendFactor)
Sourcepub fn alpha_blend_operation(&self) -> BlendOperation
pub fn alpha_blend_operation(&self) -> BlendOperation
Get the alpha blend operation.
C++ equivalent: MTL::BlendOperation alphaBlendOperation() const
Sourcepub fn set_alpha_blend_operation(&self, operation: BlendOperation)
pub fn set_alpha_blend_operation(&self, operation: BlendOperation)
Set the alpha blend operation.
C++ equivalent: void setAlphaBlendOperation(MTL::BlendOperation)
Sourcepub fn write_mask(&self) -> ColorWriteMask
pub fn write_mask(&self) -> ColorWriteMask
Get the write mask.
C++ equivalent: MTL::ColorWriteMask writeMask() const
Sourcepub fn set_write_mask(&self, mask: ColorWriteMask)
pub fn set_write_mask(&self, mask: ColorWriteMask)
Set the write mask.
C++ equivalent: void setWriteMask(MTL::ColorWriteMask)