mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-11 18:50:30 +00:00
VideoCommon: add support for setting and getting the stage from the texture info
This commit is contained in:
parent
a1892a9c68
commit
7854afe512
2 changed files with 22 additions and 12 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue