This commit is contained in:
Kovid Goyal 2026-07-01 10:43:50 +05:30
parent dd311a80a0
commit a4fd91e00f
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View file

@ -466,6 +466,7 @@ def main() -> None:
parallel_run(needed)
compile_builtin_shaders(sys.argv[-2], sys.argv[-1], prun)
def test_slang_build() -> None:
import subprocess
if shutil.which(slangc[0]) is None:

View file

@ -2,6 +2,7 @@
import subprocess
import sys
from pathlib import Path
from typing import Iterable
# Map the custom extensions to the required glslangValidator stage strings
stage_mapping = {
@ -12,7 +13,7 @@ stage_mapping = {
}
def validate_glsl_files(shader_files: list[str], verbose: bool = False) -> None:
def validate_glsl_files(shader_files: Iterable[str | Path], verbose: bool = False) -> None:
error_count = 0
# Process each shader file