summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Assets/TextureAssetUtils.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-09-16 14:48:24 -0400
committerGitHub <noreply@github.com>2025-09-16 14:48:24 -0400
commit8b0498f5f22639967e3b7ac7a5fcab649ea5d3ca (patch)
tree45fbf75d0517e415d7629bcd47cca18f329c312a /Source/Core/VideoCommon/Assets/TextureAssetUtils.cpp
parentc7b4cd9961e9bb1bedb0c3aeccdf0c60dbc8efd0 (diff)
parent4489ea0ec29b91564de2e1b3a3ad0b2092dd2202 (diff)
Merge pull request #13889 from iwubcode/texture_and_sampler_asset
VideoCommon: add TextureAndSamplerAsset for use in custom materials
Diffstat (limited to 'Source/Core/VideoCommon/Assets/TextureAssetUtils.cpp')
-rw-r--r--Source/Core/VideoCommon/Assets/TextureAssetUtils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Assets/TextureAssetUtils.cpp b/Source/Core/VideoCommon/Assets/TextureAssetUtils.cpp
index 5285c61bba..4d2316081e 100644
--- a/Source/Core/VideoCommon/Assets/TextureAssetUtils.cpp
+++ b/Source/Core/VideoCommon/Assets/TextureAssetUtils.cpp
@@ -66,8 +66,8 @@ bool LoadMips(const std::filesystem::path& asset_path, CustomTextureData::ArrayS
}
} // namespace
bool LoadTextureDataFromFile(const CustomAssetLibrary::AssetID& asset_id,
- const std::filesystem::path& asset_path,
- TextureAndSamplerData::Type type, CustomTextureData* data)
+ const std::filesystem::path& asset_path, AbstractTextureType type,
+ CustomTextureData* data)
{
auto ext = PathToString(asset_path.extension());
Common::ToLower(&ext);
@@ -92,7 +92,7 @@ bool LoadTextureDataFromFile(const CustomAssetLibrary::AssetID& asset_id,
{
// PNG could support more complicated texture types in the future
// but for now just error
- if (type != TextureAndSamplerData::Type::Type_Texture2D)
+ if (type != AbstractTextureType::Texture_2D)
{
ERROR_LOG_FMT(VIDEO, "Asset '{}' error - PNG is not supported for texture type '{}'!",
asset_id, type);