pub struct BaseRenderGraphIntermediateState {
pub per_transparency: ArrayVec<PerTransparencyInfo, 3>,
pub shadow_uniform_bg: DataHandle<BindGroup>,
pub forward_uniform_bg: DataHandle<BindGroup>,
pub color: RenderTargetHandle,
pub resolve: Option<RenderTargetHandle>,
pub depth: RenderTargetHandle,
pub pre_skinning_buffers: DataHandle<PreSkinningBuffers>,
pub skinned_data: DataHandle<SkinningOutput>,
}
Expand description
Struct that globs all the information the BaseRenderGraph
needs.
This is intentionally public so all this can be changed by the user if they so desire.
Fields§
§per_transparency: ArrayVec<PerTransparencyInfo, 3>
§shadow_uniform_bg: DataHandle<BindGroup>
§forward_uniform_bg: DataHandle<BindGroup>
§color: RenderTargetHandle
§resolve: Option<RenderTargetHandle>
§depth: RenderTargetHandle
§pre_skinning_buffers: DataHandle<PreSkinningBuffers>
§skinned_data: DataHandle<SkinningOutput>
Implementations§
Source§impl BaseRenderGraphIntermediateState
impl BaseRenderGraphIntermediateState
Sourcepub fn new(
graph: &mut RenderGraph<'_>,
ready: &ReadyData,
resolution: UVec2,
samples: SampleCount,
) -> Self
pub fn new( graph: &mut RenderGraph<'_>, ready: &ReadyData, resolution: UVec2, samples: SampleCount, ) -> Self
Create the default setting for all state.
Sourcepub fn pbr_pre_culling(&self, graph: &mut RenderGraph<'_>)
pub fn pbr_pre_culling(&self, graph: &mut RenderGraph<'_>)
Upload culling input data to the GPU.
Sourcepub fn pre_skinning(&self, graph: &mut RenderGraph<'_>)
pub fn pre_skinning(&self, graph: &mut RenderGraph<'_>)
Upload skinning input data to the GPU.
Sourcepub fn create_frame_uniforms<'node>(
&self,
graph: &mut RenderGraph<'node>,
base: &'node BaseRenderGraph,
ambient: Vec4,
)
pub fn create_frame_uniforms<'node>( &self, graph: &mut RenderGraph<'node>, base: &'node BaseRenderGraph, ambient: Vec4, )
Create all the uniforms all the shaders in this graph need.
Sourcepub fn pbr_shadow_culling<'node>(
&self,
graph: &mut RenderGraph<'node>,
base: &'node BaseRenderGraph,
pbr: &'node PbrRoutine,
)
pub fn pbr_shadow_culling<'node>( &self, graph: &mut RenderGraph<'node>, base: &'node BaseRenderGraph, pbr: &'node PbrRoutine, )
Does all shadow culling for the PBR materials.
pub fn skinning<'node>( &self, graph: &mut RenderGraph<'node>, base: &'node BaseRenderGraph, )
Sourcepub fn pbr_culling<'node>(
&self,
graph: &mut RenderGraph<'node>,
base: &'node BaseRenderGraph,
pbr: &'node PbrRoutine,
)
pub fn pbr_culling<'node>( &self, graph: &mut RenderGraph<'node>, base: &'node BaseRenderGraph, pbr: &'node PbrRoutine, )
Does all culling for the forward PBR materials.
Sourcepub fn pbr_shadow_rendering<'node>(
&self,
graph: &mut RenderGraph<'node>,
pbr: &'node PbrRoutine,
)
pub fn pbr_shadow_rendering<'node>( &self, graph: &mut RenderGraph<'node>, pbr: &'node PbrRoutine, )
Render all shadows for the PBR materials.
Sourcepub fn pbr_prepass_rendering<'node>(
&self,
graph: &mut RenderGraph<'node>,
pbr: &'node PbrRoutine,
samples: SampleCount,
)
pub fn pbr_prepass_rendering<'node>( &self, graph: &mut RenderGraph<'node>, pbr: &'node PbrRoutine, samples: SampleCount, )
Render the depth prepass for all PBR materials,
Sourcepub fn skybox<'node>(
&self,
graph: &mut RenderGraph<'node>,
skybox: Option<&'node SkyboxRoutine>,
samples: SampleCount,
)
pub fn skybox<'node>( &self, graph: &mut RenderGraph<'node>, skybox: Option<&'node SkyboxRoutine>, samples: SampleCount, )
Render the skybox.
Sourcepub fn pbr_forward_rendering<'node>(
&self,
graph: &mut RenderGraph<'node>,
pbr: &'node PbrRoutine,
samples: SampleCount,
)
pub fn pbr_forward_rendering<'node>( &self, graph: &mut RenderGraph<'node>, pbr: &'node PbrRoutine, samples: SampleCount, )
Render the PBR materials.
Sourcepub fn tonemapping<'node>(
&self,
graph: &mut RenderGraph<'node>,
tonemapping: &'node TonemappingRoutine,
target: RenderTargetHandle,
)
pub fn tonemapping<'node>( &self, graph: &mut RenderGraph<'node>, tonemapping: &'node TonemappingRoutine, target: RenderTargetHandle, )
Tonemap onto the given render target.
Auto Trait Implementations§
impl Freeze for BaseRenderGraphIntermediateState
impl !RefUnwindSafe for BaseRenderGraphIntermediateState
impl Send for BaseRenderGraphIntermediateState
impl Sync for BaseRenderGraphIntermediateState
impl Unpin for BaseRenderGraphIntermediateState
impl !UnwindSafe for BaseRenderGraphIntermediateState
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