pub struct ForwardPass {
pub enabled: bool,
pub shader_handle: u64,
pub draw_call_count: u32,
pub triangle_count: u64,
pub time_us: u64,
pub depth_test: bool,
pub depth_write: bool,
pub blend_mode: ForwardBlendMode,
pub premultiplied_alpha: bool,
pub render_particles: bool,
pub render_glyphs: bool,
pub oit_layers: u32,
}Expand description
Forward rendering pass for transparent objects, particles, and alpha-blended glyphs. These are sorted back-to-front and rendered after the deferred lighting pass.
Fields§
§enabled: boolWhether this pass is enabled.
shader_handle: u64Shader program handle.
draw_call_count: u32Draw call count this frame.
triangle_count: u64Triangle count this frame.
time_us: u64Time taken (microseconds).
depth_test: boolWhether depth testing is enabled (yes, read-only).
depth_write: boolWhether depth writing is enabled (usually no for transparent objects).
blend_mode: ForwardBlendModeBlend mode.
premultiplied_alpha: boolWhether to use premultiplied alpha.
render_particles: boolWhether to render particles in this pass.
render_glyphs: boolWhether to render alpha-blended text/glyphs in this pass.
oit_layers: u32Maximum number of transparent layers for OIT (Order-Independent Transparency). 0 = disabled (use simple sorted blending).
Implementations§
Source§impl ForwardPass
impl ForwardPass
Trait Implementations§
Source§impl Debug for ForwardPass
impl Debug for ForwardPass
Auto Trait Implementations§
impl Freeze for ForwardPass
impl RefUnwindSafe for ForwardPass
impl Send for ForwardPass
impl Sync for ForwardPass
impl Unpin for ForwardPass
impl UnsafeUnpin for ForwardPass
impl UnwindSafe for ForwardPass
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.