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

Method ReadTexture16

pcsx2/GS/GSLocalMemoryMultiISA.cpp:1097–1113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1095}
1096
1097void GSLocalMemoryFunctions::ReadTexture16(GSLocalMemory& mem, const GSOffset& off, const GSVector4i& r, u8* dst, int dstpitch, const GIFRegTEXA& TEXA)
1098{
1099 if (TEXA.AEM)
1100 {
1101 foreachBlock(off.assertSizesMatch(GSLocalMemory::swizzle16), mem, r, dst, dstpitch, 32, [&](u8* read_dst, const u8* src)
1102 {
1103 GSBlock::ReadAndExpandBlock16<true>(src, read_dst, dstpitch, TEXA);
1104 });
1105 }
1106 else
1107 {
1108 foreachBlock(off.assertSizesMatch(GSLocalMemory::swizzle16), mem, r, dst, dstpitch, 32, [&](u8* read_dst, const u8* src)
1109 {
1110 GSBlock::ReadAndExpandBlock16<false>(src, read_dst, dstpitch, TEXA);
1111 });
1112 }
1113}
1114
1115void GSLocalMemoryFunctions::ReadTexture8(GSLocalMemory& mem, const GSOffset& off, const GSVector4i& r, u8* dst, int dstpitch, const GIFRegTEXA& TEXA)
1116{

Callers

nothing calls this directly

Calls 2

assertSizesMatchMethod · 0.80
foreachBlockFunction · 0.70

Tested by

no test coverage detected