This commit is contained in:
Kovid Goyal
2026-07-01 10:43:50 +05:30
parent 75aa909fbe
commit 8a1c322e09
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