MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ReadTexture8

Method ReadTexture8

pcsx2/GS/GSLocalMemoryMultiISA.cpp:1115–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1113}
1114
1115void GSLocalMemoryFunctions::ReadTexture8(GSLocalMemory& mem, const GSOffset& off, const GSVector4i& r, u8* dst, int dstpitch, const GIFRegTEXA& TEXA)
1116{
1117 const u32* pal = mem.m_clut;
1118
1119 foreachBlock(off.assertSizesMatch(GSLocalMemory::swizzle8), mem, r, dst, dstpitch, 32, [&](u8* read_dst, const u8* src)
1120 {
1121 GSBlock::ReadAndExpandBlock8_32(src, read_dst, dstpitch, pal);
1122 });
1123}
1124
1125void GSLocalMemoryFunctions::ReadTexture4(GSLocalMemory& mem, const GSOffset& off, const GSVector4i& r, u8* dst, int dstpitch, const GIFRegTEXA& TEXA)
1126{

Callers

nothing calls this directly

Calls 3

ReadAndExpandBlock8_32Function · 0.85
assertSizesMatchMethod · 0.80
foreachBlockFunction · 0.70

Tested by

no test coverage detected