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

Method ReadTexture24

pcsx2/GS/GSLocalMemoryMultiISA.cpp:1059–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1057}
1058
1059void GSLocalMemoryFunctions::ReadTexture24(GSLocalMemory& mem, const GSOffset& off, const GSVector4i& r, u8* dst, int dstpitch, const GIFRegTEXA& TEXA)
1060{
1061 if (TEXA.AEM)
1062 {
1063 foreachBlock(off.assertSizesMatch(GSLocalMemory::swizzle32), mem, r, dst, dstpitch, 32, [&](u8* read_dst, const u8* src)
1064 {
1065 GSBlock::ReadAndExpandBlock24<true>(src, read_dst, dstpitch, TEXA);
1066 });
1067 }
1068 else
1069 {
1070 foreachBlock(off.assertSizesMatch(GSLocalMemory::swizzle32), mem, r, dst, dstpitch, 32, [&](u8* read_dst, const u8* src)
1071 {
1072 GSBlock::ReadAndExpandBlock24<false>(src, read_dst, dstpitch, TEXA);
1073 });
1074 }
1075}
1076
1077void GSLocalMemoryFunctions::ReadTextureGPU24(GSLocalMemory& mem, const GSOffset& off, const GSVector4i& r, u8* dst, int dstpitch, const GIFRegTEXA& TEXA)
1078{

Callers

nothing calls this directly

Calls 2

assertSizesMatchMethod · 0.80
foreachBlockFunction · 0.70

Tested by

no test coverage detected