Add missing OpTypeSampledImage to prevent unknown type error from SPVRemapper.
This commit is contained in:
parent
65c78a0b62
commit
3573f2e029
1 changed files with 3 additions and 0 deletions
|
|
@ -178,6 +178,7 @@ namespace spv {
|
||||||
case spv::OpTypeDeviceEvent:
|
case spv::OpTypeDeviceEvent:
|
||||||
case spv::OpTypeReserveId:
|
case spv::OpTypeReserveId:
|
||||||
case spv::OpTypeQueue:
|
case spv::OpTypeQueue:
|
||||||
|
case spv::OpTypeSampledImage:
|
||||||
case spv::OpTypePipe: return true;
|
case spv::OpTypePipe: return true;
|
||||||
default: return false;
|
default: return false;
|
||||||
}
|
}
|
||||||
|
|
@ -1012,6 +1013,8 @@ namespace spv {
|
||||||
spv[typeStart+7] * 1 * 16; // format
|
spv[typeStart+7] * 1 * 16; // format
|
||||||
case spv::OpTypeSampler:
|
case spv::OpTypeSampler:
|
||||||
return 500;
|
return 500;
|
||||||
|
case spv::OpTypeSampledImage:
|
||||||
|
return 502;
|
||||||
case spv::OpTypeArray:
|
case spv::OpTypeArray:
|
||||||
return 501 + hashType(typePos(spv[typeStart+2])) * spv[typeStart+3];
|
return 501 + hashType(typePos(spv[typeStart+2])) * spv[typeStart+3];
|
||||||
case spv::OpTypeRuntimeArray:
|
case spv::OpTypeRuntimeArray:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue