pub struct PassDescriptor {
pub name: String,
pub color_target: PassColorTarget,
pub color_load: ColorAttachmentLoad,
pub clear_color: [f32; 4],
pub depth_load: DepthAttachmentLoad,
pub clear_depth: f32,
pub instance_indices: Vec<usize>,
pub buffer_intents: Vec<BufferUsageIntent>,
}Fields§
§name: String§color_target: PassColorTarget§color_load: ColorAttachmentLoad§clear_color: [f32; 4]§depth_load: DepthAttachmentLoad§clear_depth: f32§instance_indices: Vec<usize>§buffer_intents: Vec<BufferUsageIntent>Implementations§
Source§impl PassDescriptor
impl PassDescriptor
pub fn new(name: impl Into<String>) -> Self
pub fn uses_depth_attachment(&self) -> bool
pub fn with_clear_color(self, clear_color: [f32; 4]) -> Self
pub fn with_clear_depth(self, clear_depth: Option<f32>) -> Self
pub fn with_color_load(self, color_load: ColorAttachmentLoad) -> Self
pub fn with_depth_load(self, depth_load: DepthAttachmentLoad) -> Self
pub fn with_color_target(self, color_target: PassColorTarget) -> Self
pub fn with_instance_indices(self, instance_indices: Vec<usize>) -> Self
pub fn with_buffer_intents(self, buffer_intents: Vec<BufferUsageIntent>) -> Self
pub fn into_frame_pass(self) -> FramePass
Trait Implementations§
Source§impl Clone for PassDescriptor
impl Clone for PassDescriptor
Source§fn clone(&self) -> PassDescriptor
fn clone(&self) -> PassDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PassDescriptor
impl RefUnwindSafe for PassDescriptor
impl Send for PassDescriptor
impl Sync for PassDescriptor
impl Unpin for PassDescriptor
impl UnsafeUnpin for PassDescriptor
impl UnwindSafe for PassDescriptor
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