diff --git a/kitty/shaders/custom/sample.pipeline b/kitty/shaders/custom/sample.pipeline deleted file mode 100644 index b548500fa..000000000 --- a/kitty/shaders/custom/sample.pipeline +++ /dev/null @@ -1,3 +0,0 @@ -startgroup - shaders sample sample -endgroup diff --git a/kitty/shaders/slang.py b/kitty/shaders/slang.py index 2c96ec410..dc483f154 100644 --- a/kitty/shaders/slang.py +++ b/kitty/shaders/slang.py @@ -253,6 +253,17 @@ class LoadShaderPrograms: for k in self.custom_shaders: try: d = parse_pipeline(k) + except FileNotFoundError as e: + try: + get_custom_shader_src(k) + except Exception: + log_error(f'Failed to read custom shader pipeline definition from {k} with error: {e}') + continue + try: + d = parse_pipeline_definition(['startgroup', f' shaders {k}', 'endgroup']) + except Exception as e2: + log_error(f'Failed to build minimal shader pipeline for {k} with error: {e2}') + continue except Exception as e: log_error(f'Failed to read custom shader pipeline definition from {k} with error: {e}') continue