pub struct SkyboxRoutine { /* private fields */ }
Expand description
Skybox rendering routine.
See module for documentation.
Implementations§
Source§impl SkyboxRoutine
impl SkyboxRoutine
Sourcepub fn new(renderer: &Renderer, interfaces: &WholeFrameInterfaces) -> Self
pub fn new(renderer: &Renderer, interfaces: &WholeFrameInterfaces) -> Self
Create the routine.
Sourcepub fn set_background_texture(&mut self, texture: Option<TextureHandle>)
pub fn set_background_texture(&mut self, texture: Option<TextureHandle>)
Set the current background texture. Bad things will happen if this isn’t a cube texture.
Sourcepub fn ready(&mut self, renderer: &Renderer)
pub fn ready(&mut self, renderer: &Renderer)
Update data if the background has changed since last frame.
Sourcepub fn add_to_graph<'node>(
&'node self,
graph: &mut RenderGraph<'node>,
color: RenderTargetHandle,
resolve: Option<RenderTargetHandle>,
depth: RenderTargetHandle,
forward_uniform_bg: DataHandle<BindGroup>,
samples: SampleCount,
)
pub fn add_to_graph<'node>( &'node self, graph: &mut RenderGraph<'node>, color: RenderTargetHandle, resolve: Option<RenderTargetHandle>, depth: RenderTargetHandle, forward_uniform_bg: DataHandle<BindGroup>, samples: SampleCount, )
Add rendering the skybox to the given rendergraph.
Auto Trait Implementations§
impl Freeze for SkyboxRoutine
impl !RefUnwindSafe for SkyboxRoutine
impl Send for SkyboxRoutine
impl Sync for SkyboxRoutine
impl Unpin for SkyboxRoutine
impl !UnwindSafe for SkyboxRoutine
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