Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2022-05-10 19:02:10 +0300
committerGitHub <noreply@github.com>2022-05-10 19:02:10 +0300
commit940efca099afd08bf9ef1679239b5040976d2cb2 (patch)
treeecd4bb38c725ec9c7bf8e4b8ba38445ee9c1b78a
parent0c8a79b0b5c71e1fa59d20577589b5cb58ccb4f1 (diff)
parent0b303aab16fd774dc2cf1116a83172f9eaf79a86 (diff)
Merge pull request #1936 from KhronosGroup/rt-stage-cli
Add --stage handling for ray tracing.
-rw-r--r--main.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index c4ff4c4e..521e98f9 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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.");
}