From 7ef75a4c4dbfc437e466381dd67c23357e607b82 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 17 Nov 2021 15:21:35 +0200 Subject: [PATCH] Fix reflection of image types from Spir-V modules --- source/core/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/module.cpp b/source/core/module.cpp index 4eefc034..dee12461 100644 --- a/source/core/module.cpp +++ b/source/core/module.cpp @@ -376,7 +376,7 @@ void SpirVModule::Reflection::reflect_image_type(CodeIterator op) unsigned dimensions = *(op+3); bool depth = *(op+4)==1; bool array = *(op+5); - type.type = static_cast((depth*0x200000) | (array*0x80000) | (dimensions+1) | sample); + type.type = static_cast((depth*0x200000) | (array*0x80000) | ((dimensions+1)<<16) | sample); } void SpirVModule::Reflection::reflect_sampled_image_type(CodeIterator op) -- 2.45.2