X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmodule.cpp;h=0870c4782c9f90d620b8ecda500d985f8bd363ab;hb=2a70fecfbbe8708be2bdaa75d222dd5a889a8ed3;hp=5475e434ac2636331c846a529bdf99fb508efb04;hpb=d9c437291135255422c71918cd0cab8a735848af;p=libs%2Fgl.git diff --git a/source/core/module.cpp b/source/core/module.cpp index 5475e434..0870c478 100644 --- a/source/core/module.cpp +++ b/source/core/module.cpp @@ -623,11 +623,13 @@ void SpirVModule::Reflection::reflect_matrix_type(CodeIterator op) void SpirVModule::Reflection::reflect_image_type(CodeIterator op) { TypeInfo &type = types[*(op+1)]; - DataType sample = types[*(op+2)].type; + DataType sample_type = types[*(op+2)].type; unsigned dimensions = *(op+3); bool depth = *(op+4)==1; bool array = *(op+5); - type.type = static_cast((depth*0x200000) | (array*0x80000) | ((dimensions+1)<<16) | sample); + bool sampled = *(op+7)==1; + type.type = static_cast((depth*0x200000) | (sampled*0x100000) | (array*0x80000) | + ((dimensions+1)<<16) | sample_type); } void SpirVModule::Reflection::reflect_sampled_image_type(CodeIterator op)