As game scenes become more complex, an increasing number of lighting effects are applied to games, leading to substantial lighting computation and bandwidth consumption. Currently, methods such as tile-based deferred rendering (TBDR) and Forward+ can address the problem of rendering time consumed by numerous lighting effects. However, the problem of excessive bandwidth usage remains unresolved. The subpass shading capability primarily reduces bandwidth consumption by minimizing read and write operations during the computation process.
The following figures show how Subpass Shading saves one read and write bandwidth from the device memory for Render Pass 1 and Compute Pass.
Figure 1 Forward+ read process

Figure 2 Subpass Shading read process

Phones are supported. Additionally, tablets and PCs/2-in-1 devices are supported since version 5.0.2(14), and TVs are supported since version 5.1.0(18).
This kit provides the Subpass Shading API through the Vulkan extension API VK_HUAWEI_subpass_shading. This extension supports the use of Compute Shaders within a Subpass and allows for direct data read from the Tile buffer using SubpassLoad within the Compute Shader. It is designed to reduce DDR bandwidth and is suitable for TBDR and Forward+ pipelines.
For details about how to use the Subpass Shading capability, please refer to Demo (XEngine Kit-Subpass Shading).