mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 22:19:02 +00:00
D3D12Renderer: fixed some compilation errors
Removed GSFrameBase2 and D3DGSFrame. Added frame for NullRender. Minor improvements and fixes
This commit is contained in:
parent
1c890f85c5
commit
4fdeeace66
30 changed files with 609 additions and 677 deletions
|
|
@ -26,7 +26,6 @@
|
|||
#include "Gui/SaveDataDialog.h"
|
||||
|
||||
#include "Gui/GLGSFrame.h"
|
||||
#include "Gui/D3DGSFrame.h"
|
||||
#include <wx/stdpaths.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
@ -112,18 +111,20 @@ bool Rpcs3App::OnInit()
|
|||
}
|
||||
};
|
||||
|
||||
callbacks.get_gs_frame = []() -> std::unique_ptr<GSFrameBase>
|
||||
callbacks.get_gs_frame = [](frame_type type) -> std::unique_ptr<GSFrameBase>
|
||||
{
|
||||
return std::make_unique<GLGSFrame>();
|
||||
};
|
||||
switch (type)
|
||||
{
|
||||
case frame_type::OpenGL:
|
||||
return std::make_unique<GLGSFrame>();
|
||||
|
||||
// TODO: unify with get_gs_frame callback
|
||||
#if defined(DX12_SUPPORT)
|
||||
SetGetD3DGSFrameCallback([]() ->GSFrameBase2*
|
||||
{
|
||||
return new D3DGSFrame();
|
||||
});
|
||||
#endif
|
||||
case frame_type::DX12:
|
||||
return std::make_unique<GSFrame>("DirectX 12");
|
||||
|
||||
case frame_type::Null:
|
||||
return std::make_unique<GSFrame>("Null");
|
||||
}
|
||||
};
|
||||
|
||||
callbacks.get_msg_dialog = []() -> std::unique_ptr<MsgDialogBase>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue