Skip to main content

prepare_preprocess_pipelines

Function prepare_preprocess_pipelines 

Source
pub fn prepare_preprocess_pipelines(
    pipeline_cache: Res<'_, PipelineCache>,
    render_device: Res<'_, RenderDevice>,
    specialized_preprocess_pipelines: ResMut<'_, SpecializedComputePipelines<PreprocessPipeline>>,
    specialized_reset_indirect_batch_sets_pipelines: ResMut<'_, SpecializedComputePipelines<ResetIndirectBatchSetsPipeline>>,
    specialized_build_indirect_parameters_pipelines: ResMut<'_, SpecializedComputePipelines<BuildIndirectParametersPipeline>>,
    specialized_bin_unpacking_pipelines: ResMut<'_, SpecializedComputePipelines<BinUnpackingPipeline>>,
    preprocess_pipelines: ResMut<'_, PreprocessPipelines>,
    gpu_preprocessing_support: Res<'_, GpuPreprocessingSupport>,
)
Expand description

A system that specializes the pipelines relating to mesh preprocessing if necessary.

These pipelines include those corresponding to the mesh preprocessing shader itself, in addition to those corresponding to the indirect batch set resetting shader, the indirect parameters building shader, and the bin unpacking shader.