pub struct IblComputeFeature { /* private fields */ }Expand description
IBL (Image-Based Lighting) compute feature.
Performs equirectangular → cube conversion, mipmap generation, and PMREM
pre-filtering for specular environment reflections. Due to the multi-phase
nature of the work (render passes for blit + mipmap, compute for PMREM),
all GPU commands are submitted during Self::extract_and_prepare with a
dedicated command encoder.
Produces an ephemeral [IblPassNode] each frame via Self::add_to_graph.
Implementations§
Source§impl IblComputeFeature
impl IblComputeFeature
Sourcepub fn extract_and_prepare(&mut self, ctx: &mut ExtractContext<'_>)
pub fn extract_and_prepare(&mut self, ctx: &mut ExtractContext<'_>)
Extract and prepare IBL compute resources.
All IBL compute work is performed here with a dedicated command encoder. The multi-phase nature of the task (equirect → cube, mipmap generation via render passes, PMREM compute dispatches) requires its own submission boundary.
Sourcepub fn add_to_graph(
&self,
ctx: &mut GraphBuilderContext<'_, '_>,
source: TextureSource,
)
pub fn add_to_graph( &self, ctx: &mut GraphBuilderContext<'_, '_>, source: TextureSource, )
Create an ephemeral [IblPassNode] and add it to the render graph.