pub struct ShaderPassStack {
pub passes: [Option<ShaderPassDescriptor>; 4],
pub pass_count: usize,
}Fields§
§passes: [Option<ShaderPassDescriptor>; 4]§pass_count: usizeImplementations§
Source§impl ShaderPassStack
impl ShaderPassStack
pub const MAX_PASSES: usize = MAX_SHADER_PASS_STACK
pub const fn empty() -> Self
pub fn single(shader: ShaderDescriptor) -> Self
pub fn with_pass(self, pass: ShaderPassDescriptor) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn passes(&self) -> impl Iterator<Item = ShaderPassDescriptor> + '_
pub fn estimated_complexity(&self) -> u16
Trait Implementations§
Source§impl Clone for ShaderPassStack
impl Clone for ShaderPassStack
Source§fn clone(&self) -> ShaderPassStack
fn clone(&self) -> ShaderPassStack
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 moreimpl Copy for ShaderPassStack
Source§impl Debug for ShaderPassStack
impl Debug for ShaderPassStack
impl Eq for ShaderPassStack
Source§impl PartialEq for ShaderPassStack
impl PartialEq for ShaderPassStack
Source§fn eq(&self, other: &ShaderPassStack) -> bool
fn eq(&self, other: &ShaderPassStack) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShaderPassStack
Auto Trait Implementations§
impl Freeze for ShaderPassStack
impl RefUnwindSafe for ShaderPassStack
impl Send for ShaderPassStack
impl Sync for ShaderPassStack
impl Unpin for ShaderPassStack
impl UnsafeUnpin for ShaderPassStack
impl UnwindSafe for ShaderPassStack
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