Cache shader source code loading

This commit is contained in:
Kovid Goyal
2023-06-13 17:58:17 +05:30
parent 85a955a796
commit 9f377c5ccb
4 changed files with 91 additions and 60 deletions

View File

@@ -31,9 +31,9 @@ class TestBuild(BaseTest):
del fdt, rsync
def test_loading_shaders(self) -> None:
from kitty.utils import load_shaders
from kitty.shaders import Program
for name in 'cell border bgimage tint blit graphics'.split():
load_shaders(name)
Program(name)
def test_glfw_modules(self) -> None:
from kitty.constants import glfw_path, is_macos