diff options
| author | Sirox <71220271+Sirox0@users.noreply.github.com> | 2025-07-02 21:01:30 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-02 18:01:30 +0000 |
| commit | bee3142ce4564d7cb6ec0af43b4ffdcae1d2e68d (patch) | |
| tree | 9a65bf3f297a845b8a9ffb9518df15dd1cf44b3e /source/slang/slang-options.cpp | |
| parent | cd28357bbeb56427032fd1e56c8b3749bcfeb854 (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.cpp | 7 |
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) { |
