Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a449707

Browse files
chinmaygardednfield
authored andcommitted
Link to the shader pipeline from the README.
1 parent 6d520d2 commit a449707

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

impeller/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ An overview of the major sub-frameworks, their responsibilities, and, relative s
5454
* The binary blob containing the compiled and optimized high-level shading language is included as a hex dump (see `xxd.py`) into a C source file with a generated GN target. Executable targets that want to include the compiled code in their binaries just need to depend on the generated GN target. This eases any shader packaging concerns.
5555
* In parallel, the SPIRV is processed by a reflector. This produces C++ translation units that allow for the easy creation of pipeline state objects at runtime. The headers for these translation units include any structs (with appropriate padding and alignment) such that uniform data as well as vertex information can be specified to the shader without having to deal with bindings, vertex descriptors, etc.. This also makes iterating on shaders easier as changes to the shader interface lead to compile time errors.
5656
* The C++ translation units generated from reflected shader information are made available to callers as a generated GN target that callers may use if necessary. It is possible for callers to perform reflection at runtime but there are no Impeller components that do this currently.
57+
58+
![Shader Compilation Pipeline](docs/shader_pipeline.png)

0 commit comments

Comments
 (0)