From 816fe3628b9c6be934033cf0dc2a70467d163256 Mon Sep 17 00:00:00 2001
From: Ethan Lee <[EMAIL REDACTED]>
Date: Sun, 9 Feb 2025 13:56:08 -0500
Subject: [PATCH] cli: Note that debug shaders only work when a debugger is
attached (#101)
---
src/cli.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cli.c b/src/cli.c
index 020272c..05ce89c 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -49,7 +49,7 @@ void print_help(void)
SDL_Log(" %-*s %s", column_width, "-I | --include <value>", "HLSL include directory. Only used with HLSL source.");
SDL_Log(" %-*s %s", column_width, "-D<name>[=<value>]", "HLSL define. Only used with HLSL source. Can be repeated.");
SDL_Log(" %-*s %s", column_width, "", "If =<value> is omitted the define will be treated as equal to 1.");
- SDL_Log(" %-*s %s", column_width, "-g | --debug", "Generate debug information when possible.");
+ SDL_Log(" %-*s %s", column_width, "-g | --debug", "Generate debug information when possible. Shaders are valid only when graphics debuggers are attached.");
}
void write_graphics_reflect_json(SDL_IOStream *outputIO, SDL_ShaderCross_GraphicsShaderMetadata *info)