You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, WebRender upstream has two uniforms that are lazily updated per program. We use push constants on some platforms and falling back to a separate descriptor set on Intel Linux, where push constants reveal a driver issue. I believe we can get away without using push constants completely.
u_projection - vertex transformation matrix. WebRender has it associated with the target, so we can safely move it into a constant buffer within the per-target descriptor set.
u_mode - the mode of operation, used mainly for text rendering. This is typically changed together with the blend mode. This means, we are doing bind_pipeline call. We might, therefore, just turn u_mode into a specialization constant for the pipelines. It may by itself improve performance.
With these removed, we are going to be left with no uniforms, so no need for push constants and their workarounds. Also, lighter draw calls 🚀
The text was updated successfully, but these errors were encountered:
Currently, WebRender upstream has two uniforms that are lazily updated per program. We use push constants on some platforms and falling back to a separate descriptor set on Intel Linux, where push constants reveal a driver issue. I believe we can get away without using push constants completely.
u_projection
- vertex transformation matrix. WebRender has it associated with the target, so we can safely move it into a constant buffer within the per-target descriptor set.u_mode
- the mode of operation, used mainly for text rendering. This is typically changed together with the blend mode. This means, we are doingbind_pipeline
call. We might, therefore, just turnu_mode
into a specialization constant for the pipelines. It may by itself improve performance.With these removed, we are going to be left with no uniforms, so no need for push constants and their workarounds. Also, lighter draw calls 🚀
The text was updated successfully, but these errors were encountered: