pub struct LightingPass {
pub max_point_lights: u32,
pub max_spot_lights: u32,
pub enable_ibl: bool,
pub enable_volumetric: bool,
}Expand description
Deferred lighting: reads G-Buffer, shadow maps, SSAO; outputs HDR color.
Fields§
§max_point_lights: u32§max_spot_lights: u32§enable_ibl: bool§enable_volumetric: boolImplementations§
Source§impl LightingPass
impl LightingPass
pub fn new() -> Self
pub fn register( &self, builder: &mut RenderGraphBuilder, albedo: ResourceHandle, normal: ResourceHandle, rm: ResourceHandle, depth: ResourceHandle, ssao: ResourceHandle, hdr_color: ResourceHandle, )
Trait Implementations§
Source§impl BuiltinPass for LightingPass
impl BuiltinPass for LightingPass
Source§fn input_names(&self) -> Vec<&str>
fn input_names(&self) -> Vec<&str>
Names of resources this pass reads.
Source§fn output_names(&self) -> Vec<&str>
fn output_names(&self) -> Vec<&str>
Names of resources this pass writes.
Source§fn execute(&self, ctx: &PassContext)
fn execute(&self, ctx: &PassContext)
Execute the pass (simulated rendering logic).
Source§fn queue_affinity(&self) -> QueueAffinity
fn queue_affinity(&self) -> QueueAffinity
Queue affinity.
Source§fn condition(&self) -> PassCondition
fn condition(&self) -> PassCondition
Optional condition for this pass.
Source§fn resolution_scale(&self) -> ResolutionScale
fn resolution_scale(&self) -> ResolutionScale
Resolution scale for this pass.
Auto Trait Implementations§
impl Freeze for LightingPass
impl RefUnwindSafe for LightingPass
impl Send for LightingPass
impl Sync for LightingPass
impl Unpin for LightingPass
impl UnsafeUnpin for LightingPass
impl UnwindSafe for LightingPass
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