summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWenbo Chen <35370033+Chaphlagical@users.noreply.github.com>2023-02-01 13:15:46 +0800
committerWenbo Chen <35370033+Chaphlagical@users.noreply.github.com>2023-02-01 13:15:46 +0800
commit9ddde8a280295fb823f34a81b85c87da6d7d464a (patch)
treed21990c5ab0d71de27c4e8d0b5032aeefca8f20e
parent4fcd195f47c0535d2f231219e2dbc77ffce87cb7 (diff)
downloadSPIRV-Reflect-9ddde8a280295fb823f34a81b85c87da6d7d464a.tar.gz
add execution model output
-rw-r--r--common/output_stream.cpp4
-rw-r--r--tests/mesh_shader_ext/mesh_shader_ext.mesh.hlsl.spv.yaml2
-rw-r--r--tests/mesh_shader_ext/mesh_shader_ext.task.hlsl.spv.yaml2
3 files changed, 6 insertions, 2 deletions
diff --git a/common/output_stream.cpp b/common/output_stream.cpp
index 6800664..bd6d73c 100644
--- a/common/output_stream.cpp
+++ b/common/output_stream.cpp
@@ -131,6 +131,10 @@ std::string ToStringSpvExecutionModel(SpvExecutionModel model) {
return "TaskNV";
case SpvExecutionModelMeshNV:
return "MeshNV";
+ case SpvExecutionModelTaskEXT:
+ return "TaskEXT";
+ case SpvExecutionModelMeshEXT:
+ return "MeshEXT";
case SpvExecutionModelRayGenerationKHR:
return "RayGenerationKHR";
case SpvExecutionModelIntersectionKHR:
diff --git a/tests/mesh_shader_ext/mesh_shader_ext.mesh.hlsl.spv.yaml b/tests/mesh_shader_ext/mesh_shader_ext.mesh.hlsl.spv.yaml
index 3391eac..ef9549f 100644
--- a/tests/mesh_shader_ext/mesh_shader_ext.mesh.hlsl.spv.yaml
+++ b/tests/mesh_shader_ext/mesh_shader_ext.mesh.hlsl.spv.yaml
@@ -221,7 +221,7 @@ module:
entry_point_id: 1
source_language: 5 # HLSL
source_language_version: 670
- spirv_execution_model: 5365 # ???
+ spirv_execution_model: 5365 # MeshEXT
shader_stage: 0x00000080 # MESH
descriptor_binding_count: 0
descriptor_bindings:
diff --git a/tests/mesh_shader_ext/mesh_shader_ext.task.hlsl.spv.yaml b/tests/mesh_shader_ext/mesh_shader_ext.task.hlsl.spv.yaml
index 012e6e4..fe876cb 100644
--- a/tests/mesh_shader_ext/mesh_shader_ext.task.hlsl.spv.yaml
+++ b/tests/mesh_shader_ext/mesh_shader_ext.task.hlsl.spv.yaml
@@ -116,7 +116,7 @@ module:
entry_point_id: 1
source_language: 5 # HLSL
source_language_version: 670
- spirv_execution_model: 5364 # ???
+ spirv_execution_model: 5364 # TaskEXT
shader_stage: 0x00000040 # TASK
descriptor_binding_count: 0
descriptor_bindings: