{
if(call.declaration && call.declaration->source==BUILTIN_SOURCE)
{
- if(!call.name.compare(0, 7, "texture") && call.arguments.size()>=1)
+ if(call.name=="textureSize")
+ check_version(Version(1, 30));
+ if(call.name=="textureQueryLevels")
+ check_version(Version(4, 30));
+ else if(call.name=="textureQueryLod")
+ check_version(Version(4, 0));
+ else if(!call.name.compare(0, 8, "bitfield"))
+ check_version(Version(4, 0));
+ else if(!call.name.compare(0, 7, "texture") && call.arguments.size()>=1)
{
const ImageTypeDeclaration *arg_image = dynamic_cast<const ImageTypeDeclaration *>(call.arguments.front()->type);
if(arg_image && !supports_unified_sampling_functions())