mirror of
https://github.com/libretro/glslang.git
synced 2024-11-30 11:20:24 +00:00
Merge pull request #55 from srk-lunarg/v31_type_fixes
Add missing OpTypeSampledImage to prevent unknown type error from SPV…
This commit is contained in:
commit
c54ac79298
@ -178,6 +178,7 @@ namespace spv {
|
||||
case spv::OpTypeDeviceEvent:
|
||||
case spv::OpTypeReserveId:
|
||||
case spv::OpTypeQueue:
|
||||
case spv::OpTypeSampledImage:
|
||||
case spv::OpTypePipe: return true;
|
||||
default: return false;
|
||||
}
|
||||
@ -1012,6 +1013,8 @@ namespace spv {
|
||||
spv[typeStart+7] * 1 * 16; // format
|
||||
case spv::OpTypeSampler:
|
||||
return 500;
|
||||
case spv::OpTypeSampledImage:
|
||||
return 502;
|
||||
case spv::OpTypeArray:
|
||||
return 501 + hashType(typePos(spv[typeStart+2])) * spv[typeStart+3];
|
||||
case spv::OpTypeRuntimeArray:
|
||||
|
Loading…
Reference in New Issue
Block a user