cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

GFX Pipeline Cache Support

Open bluesky013 opened this issue 2 years ago • 1 comments

Use Case

When compiling shaders, use the binary compilation results from the previous launch.

Problem Description

The creation and compilation process of Shader and PSO may have significant overhead, and using binary caching can speed up this process.

Proposed Solution

The compilation results of Shader and PSO can be obtained and reused from the driver to accelerate the next compilation process.

The implementations of each backend are as follows:

  • GLES2: shader binary
  • GLES3: program binary
  • VK: VkPipelineCache
  • Metal: MTLBinaryArchive

How it works

No response

Alternatives Considered

none

Additional Information

No response

bluesky013 avatar Apr 11 '23 03:04 bluesky013

遗留: GLES2: shader binary Metal: MTLBinaryArchive

bluesky013 avatar Apr 27 '23 02:04 bluesky013