コード例 #1
0
ファイル: OgreGpuProgram.cpp プロジェクト: whztt07/ogre3d
    //-----------------------------------------------------------------------------
    bool GpuProgram::isSupported(void) const
    {
        if (mCompileError || !isRequiredCapabilitiesSupported())
            return false;

        return GpuProgramManager::getSingleton().isSyntaxSupported(mSyntaxCode);
    }
コード例 #2
0
ファイル: OgreCgProgram.cpp プロジェクト: wjwwood/ogre
	//-----------------------------------------------------------------------
	bool CgProgram::isSupported(void) const
	{
		if (mDelegate)
			return mDelegate->isSupported();

		if (mCompileError || !isRequiredCapabilitiesSupported())
			return false;

		return mSelectedCgProfile != CG_PROFILE_UNKNOWN;
	}
コード例 #3
0
ファイル: OgreCgProgram.cpp プロジェクト: andyhebear/likeleon
    //-----------------------------------------------------------------------
    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;

    }