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-profile-defs.h | |
| 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-profile-defs.h')
| -rw-r--r-- | source/slang/slang-profile-defs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/slang/slang-profile-defs.h b/source/slang/slang-profile-defs.h index 4781d5bc3..26faa7eb2 100644 --- a/source/slang/slang-profile-defs.h +++ b/source/slang/slang-profile-defs.h @@ -73,6 +73,7 @@ PROFILE_STAGE(Callable, callable, SLANG_STAGE_CALLABLE) PROFILE_STAGE(Mesh, mesh, SLANG_STAGE_MESH) PROFILE_STAGE(Amplification, amplification, SLANG_STAGE_AMPLIFICATION) +PROFILE_STAGE_ALIAS(Task, task, Amplification) PROFILE_STAGE(Dispatch, dispatch, SLANG_STAGE_DISPATCH) // Note: HLSL and Direct3D convention erroneously uses the term "Pixel Shader" @@ -322,6 +323,8 @@ P(Compute, compute, 430) P(Compute, compute, 440) P(Compute, compute, 450) +P(Mesh, mesh, 450) + #undef P #define P(UPPER, LOWER, STAGE, VERSION) \ PROFILE(GLSL_##UPPER##_##VERSION, glsl_##LOWER##_##VERSION, STAGE, GLSL_##VERSION) @@ -340,6 +343,8 @@ P(TessEval, tess_eval, Domain, 430) P(TessEval, tess_eval, Domain, 440) P(TessEval, tess_eval, Domain, 450) +P(Task, task, Amplification, 450) + #undef P // Define a default profile for each GLSL stage that just @@ -351,6 +356,8 @@ PROFILE_ALIAS(GLSL_Geometry, GLSL_Geometry_450, glsl_geometry) PROFILE_ALIAS(GLSL_TessControl, GLSL_TessControl_450, glsl_tess_control) PROFILE_ALIAS(GLSL_TessEval, GLSL_TessEval_450, glsl_tess_eval) PROFILE_ALIAS(GLSL_Compute, GLSL_Compute_450, glsl_compute) +PROFILE_ALIAS(GLSL_Mesh, GLSL_Mesh_450, glsl_mesh) +PROFILE_ALIAS(GLSL_Task, GLSL_Task_450, glsl_task) // TODO: define a profile for each GLSL *version* that we can // use as a catch-all when the stage can be inferred from |
