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

Method ReadTexture4

pcsx2/GS/GSLocalMemoryMultiISA.cpp:1125–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1123}
1124
1125void GSLocalMemoryFunctions::ReadTexture4(GSLocalMemory& mem, const GSOffset& off, const GSVector4i& r, u8* dst, int dstpitch, const GIFRegTEXA& TEXA)
1126{
1127 const u32* pal = mem.m_clut;
1128
1129 foreachBlock(off.assertSizesMatch(GSLocalMemory::swizzle4), mem, r, dst, dstpitch, 32, [&](u8* read_dst, const u8* src)
1130 {
1131 GSBlock::ReadAndExpandBlock4_32(src, read_dst, dstpitch, pal);
1132 });
1133}
1134
1135void GSLocalMemoryFunctions::ReadTexture8H(GSLocalMemory& mem, const GSOffset& off, const GSVector4i& r, u8* dst, int dstpitch, const GIFRegTEXA& TEXA)
1136{

Callers

nothing calls this directly

Calls 3

ReadAndExpandBlock4_32Function · 0.85
assertSizesMatchMethod · 0.80
foreachBlockFunction · 0.70

Tested by

no test coverage detected