pub struct MetalRenderPassDescriptor { /* private fields */ }Expand description
A render pass descriptor
Implementations§
Source§impl MetalRenderPassDescriptor
impl MetalRenderPassDescriptor
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new render pass descriptor
§Panics
Panics if descriptor creation fails (should not happen).
Sourcepub fn set_color_attachment_texture(&self, index: usize, texture: &MetalTexture)
pub fn set_color_attachment_texture(&self, index: usize, texture: &MetalTexture)
Set the texture for a color attachment
Sourcepub fn set_color_attachment_load_action(
&self,
index: usize,
action: MTLLoadAction,
)
pub fn set_color_attachment_load_action( &self, index: usize, action: MTLLoadAction, )
Set the load action for a color attachment
Sourcepub fn set_color_attachment_store_action(
&self,
index: usize,
action: MTLStoreAction,
)
pub fn set_color_attachment_store_action( &self, index: usize, action: MTLStoreAction, )
Set the store action for a color attachment
Trait Implementations§
Source§impl Debug for MetalRenderPassDescriptor
impl Debug for MetalRenderPassDescriptor
Source§impl Default for MetalRenderPassDescriptor
impl Default for MetalRenderPassDescriptor
Auto Trait Implementations§
impl Freeze for MetalRenderPassDescriptor
impl RefUnwindSafe for MetalRenderPassDescriptor
impl !Send for MetalRenderPassDescriptor
impl !Sync for MetalRenderPassDescriptor
impl Unpin for MetalRenderPassDescriptor
impl UnwindSafe for MetalRenderPassDescriptor
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