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

Method Init

pcsx2/GS/GSState.cpp:6878–6892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6876}
6877
6878void GSState::GSTransferBuffer::Init(GIFRegTRXPOS& TRXPOS, GIFRegTRXREG& TRXREG, const GIFRegBITBLTBUF& blit, bool is_write)
6879{
6880 x = is_write ? TRXPOS.DSAX : TRXPOS.SSAX;
6881 y = is_write ? TRXPOS.DSAY : TRXPOS.SSAY;
6882 w = TRXREG.RRW;
6883 h = TRXREG.RRH;
6884 rect = GSVector4i(x, y, x + w, y + h);
6885 total = 0;
6886 start = 0;
6887 end = 0;
6888 m_blit = blit;
6889 m_pos = TRXPOS;
6890 m_reg = TRXREG;
6891 write = is_write;
6892}
6893
6894bool GSState::GSTransferBuffer::Update(int tw, int th, int bpp, int& len)
6895{

Callers 2

GIFRegHandlerTRXDIRMethod · 0.45
ReadLocalMemoryUnsyncMethod · 0.45

Calls 1

GSVector4iClass · 0.70

Tested by

no test coverage detected