VideoCommon: add a pixel shader asset

This commit is contained in:
iwubcode 2023-06-29 00:56:06 -05:00 committed by Nayla Hanegan
commit fdae871a8d
No known key found for this signature in database
GPG key ID: 3075216CED0DB01D
9 changed files with 310 additions and 0 deletions

View file

@ -90,4 +90,11 @@ CustomAssetLoader::LoadGameTexture(const CustomAssetLibrary::AssetID& asset_id,
{
return LoadOrCreateAsset<GameTextureAsset>(asset_id, m_game_textures, std::move(library));
}
std::shared_ptr<PixelShaderAsset>
CustomAssetLoader::LoadPixelShader(const CustomAssetLibrary::AssetID& asset_id,
std::shared_ptr<CustomAssetLibrary> library)
{
return LoadOrCreateAsset<PixelShaderAsset>(asset_id, m_pixel_shaders, std::move(library));
}
} // namespace VideoCommon