diff options
Diffstat (limited to 'Source/Core/VideoCommon/Assets/CustomTextureData.h')
| -rw-r--r-- | Source/Core/VideoCommon/Assets/CustomTextureData.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/Source/Core/VideoCommon/Assets/CustomTextureData.h b/Source/Core/VideoCommon/Assets/CustomTextureData.h index b7fd6f379e..fe15c05eaa 100644 --- a/Source/Core/VideoCommon/Assets/CustomTextureData.h +++ b/Source/Core/VideoCommon/Assets/CustomTextureData.h @@ -14,18 +14,23 @@ namespace VideoCommon class CustomTextureData { public: - struct Level + struct ArraySlice { - std::vector<u8> data; - AbstractTextureFormat format = AbstractTextureFormat::RGBA8; - u32 width = 0; - u32 height = 0; - u32 row_length = 0; + struct Level + { + std::vector<u8> data; + AbstractTextureFormat format = AbstractTextureFormat::RGBA8; + u32 width = 0; + u32 height = 0; + u32 row_length = 0; + }; + std::vector<Level> m_levels; }; - std::vector<Level> m_levels; + std::vector<ArraySlice> m_slices; }; bool LoadDDSTexture(CustomTextureData* texture, const std::string& filename); -bool LoadDDSTexture(CustomTextureData::Level* level, const std::string& filename, u32 mip_level); -bool LoadPNGTexture(CustomTextureData::Level* level, const std::string& filename); +bool LoadDDSTexture(CustomTextureData::ArraySlice::Level* level, const std::string& filename, + u32 mip_level); +bool LoadPNGTexture(CustomTextureData::ArraySlice::Level* level, const std::string& filename); } // namespace VideoCommon |
