Merge pull request #1075 from lifpan/master

Remove unreasonable assertion for OpTypeImage Sampled parameter.
This commit is contained in:
Hans-Kristian Arntzen 2019-07-11 15:09:45 +02:00 committed by GitHub
commit 9f3bebe3d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -569,10 +569,6 @@ void Parser::parse(const Instruction &instruction)
type.image.sampled = ops[6];
type.image.format = static_cast<ImageFormat>(ops[7]);
type.image.access = (length >= 9) ? static_cast<AccessQualifier>(ops[8]) : AccessQualifierMax;
if (type.image.sampled == 0)
SPIRV_CROSS_THROW("OpTypeImage Sampled parameter must not be zero.");
break;
}