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>2020-04-21 15:25:18 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2020-04-21 15:25:18 +0300
commit6b0e55816966edd9901226581fc4d6e2d16f8907 (patch)
tree63a5da086dff48278dbeef1a4b77bc0d98bb357e /spirv_cross.cpp
parent78b4d9379bd0494e77b5155da6e440f0434c05fe (diff)
Handle RayQueryKHR type.
Do not error out in parsing in shaders which use ray queries.
Diffstat (limited to 'spirv_cross.cpp')
-rw-r--r--spirv_cross.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/spirv_cross.cpp b/spirv_cross.cpp
index 071b8fb5..6fd31c88 100644
--- a/spirv_cross.cpp
+++ b/spirv_cross.cpp
@@ -871,7 +871,7 @@ ShaderResources Compiler::get_shader_resources(const unordered_set<VariableID> *
res.atomic_counters.push_back({ var.self, var.basetype, type.self, get_name(var.self) });
}
// Acceleration structures
- else if (type.storage == StorageClassUniformConstant && type.basetype == SPIRType::AccelerationStructureNV)
+ else if (type.storage == StorageClassUniformConstant && type.basetype == SPIRType::AccelerationStructure)
{
res.acceleration_structures.push_back({ var.self, var.basetype, type.self, get_name(var.self) });
}