API

Function enableShaderMaterialPipelineSharing

  • Share layouts, shader modules and pipelines between every ShaderMaterial, including materials and material views created after the first scene build. Materials whose generated WGSL, layout and pipeline state are equal then compile once per device instead of once per material instance.

    Returns void