Skip to content
Snippets Groups Projects
Unverified Commit 02315785 authored by Danny Lin's avatar Danny Lin Committed by Simão Gomes Viana
Browse files

blur: Only set constant shader uniforms once


The values of the 2D texture sampler uniforms never change, so set them
when initializing the BlurFilter instance instead of updating them every
frame. This reduces clutter in the rendering path and results in a
negligible performance gain from reducing API overhead.

Change-Id: I335ea0dbdd2d4409ea71b58b7c7f8b87b04a18d7
Signed-off-by: default avatarMohammad Hasan Keramat J <ikeramat@protonmail.com>
Signed-off-by: default avatarSimão Gomes Viana <devel@superboring.dev>
parent 071ea161
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment