Skip to content

Commit 5b46644

Browse files
Merge pull request #2505 from mxpv/reflect
Add mesh shaders to reflection
2 parents d8e3e2b + 7fbfe4f commit 5b46644

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

spirv_reflect.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,12 @@ string CompilerReflection::execution_model_to_str(spv::ExecutionModel model)
477477
return "rmiss";
478478
case ExecutionModelCallableNV:
479479
return "rcall";
480+
case ExecutionModelMeshNV:
481+
case ExecutionModelMeshEXT:
482+
return "mesh";
483+
case ExecutionModelTaskNV:
484+
case ExecutionModelTaskEXT:
485+
return "task";
480486
default:
481487
return "???";
482488
}
@@ -504,7 +510,9 @@ void CompilerReflection::emit_entry_points()
504510
json_stream->begin_json_object();
505511
json_stream->emit_json_key_value("name", e.name);
506512
json_stream->emit_json_key_value("mode", execution_model_to_str(e.execution_model));
507-
if (e.execution_model == ExecutionModelGLCompute)
513+
if (e.execution_model == ExecutionModelGLCompute || e.execution_model == spv::ExecutionModelMeshEXT ||
514+
e.execution_model == spv::ExecutionModelMeshNV || e.execution_model == spv::ExecutionModelTaskEXT ||
515+
e.execution_model == spv::ExecutionModelTaskNV)
508516
{
509517
const auto &spv_entry = get_entry_point(e.name, e.execution_model);
510518

0 commit comments

Comments
 (0)