pub struct TransparentFeature;Implementations§
Source§impl TransparentFeature
impl TransparentFeature
pub fn new() -> Self
Sourcepub fn add_to_graph<'a>(
&'a self,
ctx: &mut GraphBuilderContext<'a, '_>,
color_target: TextureNodeId,
depth_target: TextureNodeId,
transmission_tex: Option<TextureNodeId>,
ssao_tex: Option<TextureNodeId>,
shadow_tex: Option<TextureNodeId>,
) -> TextureNodeId
pub fn add_to_graph<'a>( &'a self, ctx: &mut GraphBuilderContext<'a, '_>, color_target: TextureNodeId, depth_target: TextureNodeId, transmission_tex: Option<TextureNodeId>, ssao_tex: Option<TextureNodeId>, shadow_tex: Option<TextureNodeId>, ) -> TextureNodeId
Builds the transparent pass node and inserts it into the graph.
Creates an SSA alias of color_target so that the dependency on
the previous colour writer (Skybox / Opaque) is locked by graph
edges. In MSAA mode a dedicated single-sample resolve target is
also registered.
Returns the TextureNodeId that downstream consumers (Bloom,
ToneMap, hooks) should read:
- MSAA: the resolve target (
Scene_Color_HDR_Final). - Non-MSAA: the mutated colour alias.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransparentFeature
impl RefUnwindSafe for TransparentFeature
impl Send for TransparentFeature
impl Sync for TransparentFeature
impl Unpin for TransparentFeature
impl UnsafeUnpin for TransparentFeature
impl UnwindSafe for TransparentFeature
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<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().