Пример #1
0
static eastl::optional<long int>
get_basic_attribute_id(const eastl::vector<const attribute*>& att,
                       const eastl::string& name)
{
    auto it =
      eastl::find_if(att.begin(), att.end(), [&name](const attribute* att) {
          return att->name == name;
      });

    return it == att.end() ? eastl::nullopt
                           : eastl::make_optional(it - att.begin());
}
Пример #2
0
	//---------------------------------------------------------------------------------------------
	void TextureFileMetadata::GetIdentifier( eastl::vector<byte>& bytes ) const
	{
		bytes.insert( bytes.end(), m_Path.begin(), m_Path.end() );
		bytes.push_back( m_eSWarp );
		bytes.push_back( m_eTWarp );
		bytes.push_back( m_eMagFilter );
		bytes.push_back( m_eMinFilter );
		bytes.push_back( m_ePixelFormat );
		bytes.push_back( m_uAnisotropic );
	}