pub struct ColorTarget {
pub texture: Texture,
pub view: TextureView,
}Expand description
An offscreen RGBA8 colour target plus its default view.
The views are bare wgpu ones: this crate is the layer below
unlit_wgpu — which depends on it, not the other way round — so
unlit_wgpu::resources::TextureView is not reachable here. A caller that
registers this target’s view in a resource graph pairs it with its format
itself.
Fields§
§texture: TextureThe texture the target draws into.
view: TextureViewThe view passes are opened over.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ColorTarget
impl !UnwindSafe for ColorTarget
impl Forget for ColorTarget
impl Freeze for ColorTarget
impl Send for ColorTarget
impl Sync for ColorTarget
impl Unpin for ColorTarget
impl UnsafeUnpin for ColorTarget
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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