diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2022-05-10 19:02:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 19:02:10 +0300 |
commit | 940efca099afd08bf9ef1679239b5040976d2cb2 (patch) | |
tree | ecd4bb38c725ec9c7bf8e4b8ba38445ee9c1b78a | |
parent | 0c8a79b0b5c71e1fa59d20577589b5cb58ccb4f1 (diff) | |
parent | 0b303aab16fd774dc2cf1116a83172f9eaf79a86 (diff) |
Merge pull request #1936 from KhronosGroup/rt-stage-cli
Add --stage handling for ray tracing.
-rw-r--r-- | main.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1070,6 +1070,18 @@ static ExecutionModel stage_to_execution_model(const std::string &stage) return ExecutionModelTessellationEvaluation; else if (stage == "geom") return ExecutionModelGeometry; + else if (stage == "rgen") + return ExecutionModelRayGenerationKHR; + else if (stage == "rint") + return ExecutionModelIntersectionKHR; + else if (stage == "rahit") + return ExecutionModelAnyHitKHR; + else if (stage == "rchit") + return ExecutionModelClosestHitKHR; + else if (stage == "rmiss") + return ExecutionModelMissKHR; + else if (stage == "rcall") + return ExecutionModelCallableKHR; else SPIRV_CROSS_THROW("Invalid stage."); } |