void CreateTextureFromFile( const Diligent::Char *FilePath, const TextureLoadInfo& TexLoadInfo, IRenderDevice *pDevice, ITexture **ppTexture ) { RefCntAutoPtr<Image> pImage; RefCntAutoPtr<IDataBlob> pDDSData; CreateImageFromFile( FilePath, &pImage, &pDDSData ); if( pImage ) CreateTextureFromImage( pImage, TexLoadInfo, pDevice, ppTexture ); else if(pDDSData) CreateTextureFromDDS( pDDSData, TexLoadInfo, pDevice, ppTexture ); }
ImageId DXAPI::CreateImageFromFile(const char* name){ return CreateImageFromFile(name,Color4f(0,0,0,0)); }