//----------------------------------------------------------------------------- bool GpuProgram::isSupported(void) const { if (mCompileError || !isRequiredCapabilitiesSupported()) return false; return GpuProgramManager::getSingleton().isSyntaxSupported(mSyntaxCode); }
//----------------------------------------------------------------------- bool CgProgram::isSupported(void) const { if (mDelegate) return mDelegate->isSupported(); if (mCompileError || !isRequiredCapabilitiesSupported()) return false; return mSelectedCgProfile != CG_PROFILE_UNKNOWN; }
//----------------------------------------------------------------------- bool CgProgram::isSupported(void) const { if (mCompileError || !isRequiredCapabilitiesSupported()) return false; StringVector::const_iterator i, iend; iend = mProfiles.end(); // Check to see if any of the profiles are supported for (i = mProfiles.begin(); i != iend; ++i) { if (GpuProgramManager::getSingleton().isSyntaxSupported(*i)) { return true; } } return false; }