mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoCommon: add support for setting and getting the stage from the texture info
This commit is contained in:
@ -17,9 +17,10 @@ class TextureInfo
|
||||
{
|
||||
public:
|
||||
static TextureInfo FromStage(u32 stage);
|
||||
TextureInfo(const u8* ptr, const u8* tlut_ptr, u32 address, TextureFormat texture_format,
|
||||
TLUTFormat tlut_format, u32 width, u32 height, bool from_tmem, const u8* tmem_odd,
|
||||
const u8* tmem_even, std::optional<u32> mip_count);
|
||||
TextureInfo(u32 stage, const u8* ptr, const u8* tlut_ptr, u32 address,
|
||||
TextureFormat texture_format, TLUTFormat tlut_format, u32 width, u32 height,
|
||||
bool from_tmem, const u8* tmem_odd, const u8* tmem_even,
|
||||
std::optional<u32> mip_count);
|
||||
|
||||
struct NameDetails
|
||||
{
|
||||
@ -30,7 +31,7 @@ public:
|
||||
|
||||
std::string GetFullName() const;
|
||||
};
|
||||
NameDetails CalculateTextureName();
|
||||
NameDetails CalculateTextureName() const;
|
||||
|
||||
const u8* GetData() const;
|
||||
const u8* GetTlutAddress() const;
|
||||
@ -55,6 +56,8 @@ public:
|
||||
u32 GetRawWidth() const;
|
||||
u32 GetRawHeight() const;
|
||||
|
||||
u32 GetStage() const;
|
||||
|
||||
class MipLevel
|
||||
{
|
||||
public:
|
||||
@ -115,4 +118,6 @@ private:
|
||||
u32 m_block_height;
|
||||
u32 m_expanded_height;
|
||||
u32 m_raw_height;
|
||||
|
||||
u32 m_stage;
|
||||
};
|
||||
|
Reference in New Issue
Block a user