mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
BPMemory: Refactor/consolidate TexUnit Addressing
Currently the logic for addressing the individual TexUnits is splattered all across dolphin's codebase, this commit attempts to consolidate it all into a single place and formalise it using our new TexUnitAddress struct.
This commit is contained in:
parent
ef0e401708
commit
9fa26624b0
7 changed files with 146 additions and 59 deletions
|
@ -970,8 +970,7 @@ void TextureCacheBase::DumpTexture(TCacheEntry* entry, std::string basename, uns
|
|||
static void SetSamplerState(u32 index, float custom_tex_scale, bool custom_tex,
|
||||
bool has_arbitrary_mips)
|
||||
{
|
||||
const FourTexUnits& tex = bpmem.tex[index / 4];
|
||||
const TexMode0& tm0 = tex.texMode0[index % 4];
|
||||
const TexMode0& tm0 = bpmem.tex.GetUnit(index).texMode0;
|
||||
|
||||
SamplerState state = {};
|
||||
state.Generate(bpmem, index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue