mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 12:05:23 +00:00
RSX: Rename and document function member.
This commit is contained in:
parent
972515938c
commit
f4efeabcf3
5 changed files with 24 additions and 10 deletions
|
@ -1599,7 +1599,7 @@ void GLGSRender::InitDrawBuffers()
|
|||
}
|
||||
}
|
||||
|
||||
void GLGSRender::ExecCMD(u32 cmd)
|
||||
void GLGSRender::Clear(u32 cmd)
|
||||
{
|
||||
assert(cmd == NV4097_CLEAR_SURFACE);
|
||||
|
||||
|
@ -1653,7 +1653,7 @@ void GLGSRender::ExecCMD(u32 cmd)
|
|||
WriteBuffers();
|
||||
}
|
||||
|
||||
void GLGSRender::ExecCMD()
|
||||
void GLGSRender::Draw()
|
||||
{
|
||||
//return;
|
||||
if (!LoadProgram())
|
||||
|
|
|
@ -194,8 +194,8 @@ protected:
|
|||
virtual void OnInitThread();
|
||||
virtual void OnExitThread();
|
||||
virtual void OnReset();
|
||||
virtual void ExecCMD(u32 cmd);
|
||||
virtual void ExecCMD();
|
||||
virtual void Clear(u32 cmd) override;
|
||||
virtual void Draw() override;
|
||||
virtual void Flip();
|
||||
|
||||
virtual void semaphorePGRAPHTextureReadRelease(u32 offset, u32 value) override;
|
||||
|
|
|
@ -31,11 +31,11 @@ private:
|
|||
{
|
||||
}
|
||||
|
||||
virtual void ExecCMD(u32 cmd)
|
||||
virtual void Clear(u32 cmd) override
|
||||
{
|
||||
}
|
||||
|
||||
virtual void ExecCMD()
|
||||
virtual void Draw() override
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -847,7 +847,7 @@ void RSXThread::DoCmd(const u32 fcmd, const u32 cmd, const u32 args_addr, const
|
|||
if (a0 & 0x80) m_clear_surface_color_a = m_clear_color_a;
|
||||
|
||||
m_clear_surface_mask = a0;
|
||||
ExecCMD(NV4097_CLEAR_SURFACE);
|
||||
Clear(NV4097_CLEAR_SURFACE);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2416,7 +2416,7 @@ void RSXThread::Begin(u32 draw_mode)
|
|||
|
||||
void RSXThread::End()
|
||||
{
|
||||
ExecCMD();
|
||||
Draw();
|
||||
|
||||
for (auto &vdata : m_vertex_data)
|
||||
{
|
||||
|
|
|
@ -646,8 +646,22 @@ protected:
|
|||
virtual void OnInitThread() = 0;
|
||||
virtual void OnExitThread() = 0;
|
||||
virtual void OnReset() = 0;
|
||||
virtual void ExecCMD() = 0;
|
||||
virtual void ExecCMD(u32 cmd) = 0;
|
||||
|
||||
/**
|
||||
* This member is called when the backend is expected to render a draw call, either
|
||||
* indexed or not.
|
||||
*/
|
||||
virtual void Draw() = 0;
|
||||
|
||||
/**
|
||||
* This member is called when the backend is expected to clear a target surface.
|
||||
*/
|
||||
virtual void Clear(u32 cmd) = 0;
|
||||
|
||||
/**
|
||||
* This member is called when the backend is expected to present a target surface in
|
||||
* either local or main memory.
|
||||
*/
|
||||
virtual void Flip() = 0;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue