diff options
author | Patrick Mours <pmours@nvidia.com> | 2019-03-26 16:46:51 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2019-03-26 16:46:51 +0300 |
commit | 524bd43deb7898e28c25c98c373cffae4c52b75c (patch) | |
tree | 484b42d7aee69a45ae662d705647f23b1ae9aa16 /spirv_reflect.cpp | |
parent | 9910cdbf0c11522878c132ff01433200c61084d6 (diff) |
Add reflection support for ray tracing exection models
Diffstat (limited to 'spirv_reflect.cpp')
-rw-r--r-- | spirv_reflect.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/spirv_reflect.cpp b/spirv_reflect.cpp index 1e042a9a..7b9d9c07 100644 --- a/spirv_reflect.cpp +++ b/spirv_reflect.cpp @@ -365,9 +365,9 @@ string CompilerReflection::execution_model_to_str(spv::ExecutionModel model) { switch (model) { - case spv::ExecutionModelVertex: + case ExecutionModelVertex: return "vert"; - case spv::ExecutionModelTessellationControl: + case ExecutionModelTessellationControl: return "tesc"; case ExecutionModelTessellationEvaluation: return "tese"; @@ -377,6 +377,18 @@ string CompilerReflection::execution_model_to_str(spv::ExecutionModel model) return "frag"; case ExecutionModelGLCompute: return "comp"; + case ExecutionModelRayGenerationNV: + return "rgen"; + case ExecutionModelIntersectionNV: + return "rint"; + case ExecutionModelAnyHitNV: + return "rahit"; + case ExecutionModelClosestHitNV: + return "rchit"; + case ExecutionModelMissNV: + return "rmiss"; + case ExecutionModelCallableNV: + return "rcall"; default: return "???"; } |