diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-07-03 03:24:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-03 03:24:11 +0200 |
| commit | 03661223069aab4291b65c86727b4b9711b5878b (patch) | |
| tree | 48be308c35ab304620960a0b214b924f6f1f0e24 /Source/Core/VideoCommon/Assets/CustomAssetLoader.cpp | |
| parent | da2784a391c5afc513d7628e6710b46a473adc09 (diff) | |
| parent | 6ea49c6746de19c09ede7f539cf3cafc42280e5a (diff) | |
Merge pull request #12009 from iwubcode/shader_asset
VideoCommon: add a pixel shader asset
Diffstat (limited to 'Source/Core/VideoCommon/Assets/CustomAssetLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Assets/CustomAssetLoader.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Assets/CustomAssetLoader.cpp b/Source/Core/VideoCommon/Assets/CustomAssetLoader.cpp index bb404064d2..ce76a368d2 100644 --- a/Source/Core/VideoCommon/Assets/CustomAssetLoader.cpp +++ b/Source/Core/VideoCommon/Assets/CustomAssetLoader.cpp @@ -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 |
