pub struct RenderPass {
    pub alpha: RenderTargetList,
    pub color: RenderTargetList,
    pub texture_cache: FastHashMap<CacheTextureId, RenderTarget>,
    pub picture_cache: Vec<PictureCacheTarget, FrameAllocator>,
    pub textures_to_invalidate: Vec<CacheTextureId, FrameAllocator>,
}Expand description
A render pass represents a set of rendering operations that don’t depend on one another.
A render pass can have several render targets if there wasn’t enough space in one
target to do all of the rendering for that pass. See RenderTargetList.
Fields§
§alpha: RenderTargetListThe subpasses that describe targets being rendered to in this pass
color: RenderTargetList§texture_cache: FastHashMap<CacheTextureId, RenderTarget>§picture_cache: Vec<PictureCacheTarget, FrameAllocator>§textures_to_invalidate: Vec<CacheTextureId, FrameAllocator>Implementations§
Source§impl RenderPass
 
impl RenderPass
Sourcepub fn new(src: &Pass, memory: &mut FrameMemory) -> Self
 
pub fn new(src: &Pass, memory: &mut FrameMemory) -> Self
Creates an intermediate off-screen pass.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderPass
impl RefUnwindSafe for RenderPass
impl Send for RenderPass
impl !Sync for RenderPass
impl Unpin for RenderPass
impl UnwindSafe for RenderPass
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
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more