Function veloren_voxygen::render::renderer::pipeline_creation::initial_create_pipelines
source ยท pub(super) fn initial_create_pipelines(
device: Arc<Device>,
layouts: Layouts,
shaders: Shaders,
pipeline_modes: PipelineModes,
surface_config: SurfaceConfiguration,
has_shadow_views: bool,
intermediate_format: TextureFormat,
) -> Result<(InterfacePipelines, PipelineCreation<IngameAndShadowPipelines>), RenderError>
Expand description
Creates all the pipelines used to render. Use this for the initial creation. It blocks the main thread to create the interface pipelines while moving the creation of other pipelines into the background NOTE: this tries to use all the CPU cores to complete as soon as possible