summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-options.cpp
diff options
context:
space:
mode:
authorSirox <71220271+Sirox0@users.noreply.github.com>2025-07-02 21:01:30 +0300
committerGitHub <noreply@github.com>2025-07-02 18:01:30 +0000
commitbee3142ce4564d7cb6ec0af43b4ffdcae1d2e68d (patch)
tree9a65bf3f297a845b8a9ffb9518df15dd1cf44b3e /source/slang/slang-options.cpp
parentcd28357bbeb56427032fd1e56c8b3749bcfeb854 (diff)
add task shader alias (#7372)
* alias amplification shader as task shader and add mesh shader profile * add task shader stage alias to capabilities * regenerate command line reference --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-options.cpp')
-rw-r--r--source/slang/slang-options.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp
index 9141188df..1b8a45401 100644
--- a/source/slang/slang-options.cpp
+++ b/source/slang/slang-options.cpp
@@ -325,6 +325,8 @@ void initCommandOptions(CommandOptions& options)
{"tesc", "glsl (hull)"},
{"tese", "glsl (domain)"},
{"comp", "glsl (compute)"},
+ {"mesh", "glsl (mesh)"},
+ {"task", "glsl (amplification)"},
{"slang", nullptr},
{"spv", "SPIR-V"},
{"spv-asm", "SPIR-V assembly"},
@@ -1305,11 +1307,14 @@ void OptionsParser::addInputForeignShaderPath(
};
static const Entry entries[] = {
+ {".vert", Profile::GLSL_Vertex},
{".frag", Profile::GLSL_Fragment},
{".geom", Profile::GLSL_Geometry},
{".tesc", Profile::GLSL_TessControl},
{".tese", Profile::GLSL_TessEval},
- {".comp", Profile::GLSL_Compute}};
+ {".comp", Profile::GLSL_Compute},
+ {".mesh", Profile::GLSL_Mesh},
+ {".task", Profile::GLSL_Task}};
for (Index i = 0; i < SLANG_COUNT_OF(entries); ++i)
{