mirror of
https://github.com/libretro/glslang.git
synced 2025-02-18 14:40:35 +00:00
Add missing OpTypeSampledImage to prevent unknown type error from SPVRemapper.
This commit is contained in:
parent
65c78a0b62
commit
3573f2e029
@ -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…
x
Reference in New Issue
Block a user