mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
TexCache: remove expanded_width
This variable isn't use any more.
This commit is contained in:
parent
614d058db1
commit
38f42da55a
@ -81,8 +81,7 @@ void TextureCache::TCacheEntry::Load(unsigned int width, unsigned int height,
|
|||||||
D3D::ReplaceRGBATexture2D(texture->GetTex(), TextureCache::temp, width, height, expanded_width, level, usage);
|
D3D::ReplaceRGBATexture2D(texture->GetTex(), TextureCache::temp, width, height, expanded_width, level, usage);
|
||||||
}
|
}
|
||||||
|
|
||||||
TextureCache::TCacheEntryBase* TextureCache::CreateTexture(unsigned int width,
|
TextureCache::TCacheEntryBase* TextureCache::CreateTexture(unsigned int width, unsigned int height,
|
||||||
unsigned int height, unsigned int expanded_width,
|
|
||||||
unsigned int tex_levels, PC_TexFormat pcfmt)
|
unsigned int tex_levels, PC_TexFormat pcfmt)
|
||||||
{
|
{
|
||||||
D3D11_USAGE usage = D3D11_USAGE_DEFAULT;
|
D3D11_USAGE usage = D3D11_USAGE_DEFAULT;
|
||||||
|
@ -39,7 +39,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
TCacheEntryBase* CreateTexture(unsigned int width, unsigned int height,
|
TCacheEntryBase* CreateTexture(unsigned int width, unsigned int height,
|
||||||
unsigned int expanded_width, unsigned int tex_levels, PC_TexFormat pcfmt) override;
|
unsigned int tex_levels, PC_TexFormat pcfmt) override;
|
||||||
|
|
||||||
TCacheEntryBase* CreateRenderTargetTexture(unsigned int scaled_tex_w, unsigned int scaled_tex_h) override;
|
TCacheEntryBase* CreateRenderTargetTexture(unsigned int scaled_tex_w, unsigned int scaled_tex_h) override;
|
||||||
u64 EncodeToRamFromTexture(u32 address, void* source_texture, u32 SourceW, u32 SourceH, bool bFromZBuffer, bool bIsIntensityFmt, u32 copyfmt, int bScaleByHalf, const EFBRectangle& source) {return 0;};
|
u64 EncodeToRamFromTexture(u32 address, void* source_texture, u32 SourceW, u32 SourceH, bool bFromZBuffer, bool bIsIntensityFmt, u32 copyfmt, int bScaleByHalf, const EFBRectangle& source) {return 0;};
|
||||||
|
@ -108,8 +108,7 @@ bool TextureCache::TCacheEntry::Save(const std::string& filename, unsigned int l
|
|||||||
return SaveTexture(filename, GL_TEXTURE_2D_ARRAY, texture, virtual_width, virtual_height, level);
|
return SaveTexture(filename, GL_TEXTURE_2D_ARRAY, texture, virtual_width, virtual_height, level);
|
||||||
}
|
}
|
||||||
|
|
||||||
TextureCache::TCacheEntryBase* TextureCache::CreateTexture(unsigned int width,
|
TextureCache::TCacheEntryBase* TextureCache::CreateTexture(unsigned int width, unsigned int height,
|
||||||
unsigned int height, unsigned int expanded_width,
|
|
||||||
unsigned int tex_levels, PC_TexFormat pcfmt)
|
unsigned int tex_levels, PC_TexFormat pcfmt)
|
||||||
{
|
{
|
||||||
int gl_format = 0,
|
int gl_format = 0,
|
||||||
|
@ -54,7 +54,7 @@ private:
|
|||||||
~TextureCache();
|
~TextureCache();
|
||||||
|
|
||||||
TCacheEntryBase* CreateTexture(unsigned int width, unsigned int height,
|
TCacheEntryBase* CreateTexture(unsigned int width, unsigned int height,
|
||||||
unsigned int expanded_width, unsigned int tex_levels, PC_TexFormat pcfmt) override;
|
unsigned int tex_levels, PC_TexFormat pcfmt) override;
|
||||||
|
|
||||||
TCacheEntryBase* CreateRenderTargetTexture(unsigned int scaled_tex_w, unsigned int scaled_tex_h) override;
|
TCacheEntryBase* CreateRenderTargetTexture(unsigned int scaled_tex_w, unsigned int scaled_tex_h) override;
|
||||||
|
|
||||||
|
@ -466,7 +466,7 @@ TextureCache::TCacheEntryBase* TextureCache::Load(unsigned int const stage,
|
|||||||
// create the entry/texture
|
// create the entry/texture
|
||||||
if (nullptr == entry)
|
if (nullptr == entry)
|
||||||
{
|
{
|
||||||
textures[texID] = entry = g_texture_cache->CreateTexture(width, height, expandedWidth, texLevels, pcfmt);
|
textures[texID] = entry = g_texture_cache->CreateTexture(width, height, texLevels, pcfmt);
|
||||||
|
|
||||||
// Sometimes, we can get around recreating a texture if only the number of mip levels changes
|
// Sometimes, we can get around recreating a texture if only the number of mip levels changes
|
||||||
// e.g. if our texture cache entry got too many mipmap levels we can limit the number of used levels by setting the appropriate render states
|
// e.g. if our texture cache entry got too many mipmap levels we can limit the number of used levels by setting the appropriate render states
|
||||||
|
@ -98,7 +98,7 @@ public:
|
|||||||
static bool Find(u32 start_address, u64 hash);
|
static bool Find(u32 start_address, u64 hash);
|
||||||
|
|
||||||
virtual TCacheEntryBase* CreateTexture(unsigned int width, unsigned int height,
|
virtual TCacheEntryBase* CreateTexture(unsigned int width, unsigned int height,
|
||||||
unsigned int expanded_width, unsigned int tex_levels, PC_TexFormat pcfmt) = 0;
|
unsigned int tex_levels, PC_TexFormat pcfmt) = 0;
|
||||||
virtual TCacheEntryBase* CreateRenderTargetTexture(unsigned int scaled_tex_w, unsigned int scaled_tex_h) = 0;
|
virtual TCacheEntryBase* CreateRenderTargetTexture(unsigned int scaled_tex_w, unsigned int scaled_tex_h) = 0;
|
||||||
|
|
||||||
virtual void CompileShaders() = 0; // currently only implemented by OGL
|
virtual void CompileShaders() = 0; // currently only implemented by OGL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user