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>2021-10-21 23:02:01 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2021-10-21 23:02:01 +0300
commit2b5e17eca58ef1ad0b5aa3897c2dae45a9c83086 (patch)
treede9909da35713b2a56cb2a95803fa0a54a920716 /spirv_msl.cpp
parentbc338710e1b8f81f9e49a0f9dea4680e1ddba9e2 (diff)
MSL: Never used templated array for RayQuery objects.
Not supported and compiler derps out.
Diffstat (limited to 'spirv_msl.cpp')
-rw-r--r--spirv_msl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/spirv_msl.cpp b/spirv_msl.cpp
index 0c257a5e..a8a79770 100644
--- a/spirv_msl.cpp
+++ b/spirv_msl.cpp
@@ -13402,8 +13402,7 @@ string CompilerMSL::type_to_glsl(const SPIRType &type, uint32_t id)
SPIRV_CROSS_THROW("Acceleration Structure Type is supported in MSL 2.3 and above.");
break;
case SPIRType::RayQuery:
- type_name = "intersection_query<instancing, triangle_data>";
- break;
+ return "intersection_query<instancing, triangle_data>";
default:
return "unknown_type";
@@ -13448,6 +13447,7 @@ string CompilerMSL::type_to_array_glsl(const SPIRType &type)
{
case SPIRType::AtomicCounter:
case SPIRType::ControlPointArray:
+ case SPIRType::RayQuery:
{
return CompilerGLSL::type_to_array_glsl(type);
}