Skip to content

Commit 9233769

Browse files
authored
Merge pull request #10144 from tetrapod00/pipeline-stutter-diagram
Add diagram of shader compilation steps to Pipeline Compilations page
2 parents 02f5982 + 991cea2 commit 9233769

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
16.3 KB
Loading

tutorials/performance/pipeline_compilations.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ Pipeline compilation, also commonly known as shader compilation, is an expensive
77
operation required by the engine to be able to draw any kind of content with the
88
GPU.
99

10+
.. figure:: img/pipeline_compilations_shader_compilation_diagram.webp
11+
:align: center
12+
:alt: Flowchart showing the entire compilation process for a shader: VisualShader and Standard Material to Godot Shading Language to GLSL to Intermediate Format (SPIR-V) to Pipeline. Shader Compilation is the GLSL to Intermediate Format step. Pipeline Compilation is the Intermediate Format to Pipeline step.
13+
14+
Shaders and materials in Godot go through several steps before they can be run
15+
by the GPU.
16+
1017
In more precise terms, *shader compilation* involves the translation of the GLSL
1118
code that Godot generates into an intermediate format that can be shared across
1219
systems (such as SPIR-V when using Vulkan). However, this format can't be used

0 commit comments

Comments
 (0)