Add a null graphics system (enable with --gpu=null)

Still uses vulkan to drive xenia UI, may look into decoupling later.
This commit is contained in:
Dr. Chat
2016-08-04 09:50:13 -05:00
parent 92859f5a28
commit 40f782a83b
7 changed files with 219 additions and 1 deletions

View File

@@ -0,0 +1,41 @@
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2016 Ben Vanik. All rights reserved. *
* Released under the BSD license - see LICENSE in the root for more details. *
******************************************************************************
*/
#ifndef XENIA_GPU_NULL_NULL_GRAPHICS_SYSTEM_H_
#define XENIA_GPU_NULL_NULL_GRAPHICS_SYSTEM_H_
#include <memory>
#include "xenia/gpu/graphics_system.h"
#include "xenia/gpu/command_processor.h"
namespace xe {
namespace gpu {
namespace null {
class NullGraphicsSystem : public GraphicsSystem {
public:
NullGraphicsSystem();
~NullGraphicsSystem() override;
X_STATUS Setup(cpu::Processor* processor, kernel::KernelState* kernel_state,
ui::Window* target_window) override;
void Shutdown() override;
private:
std::unique_ptr<CommandProcessor> CreateCommandProcessor() override;
void Swap(xe::ui::UIEvent* e) override;
};
} // namespace null
} // namespace gpu
} // namespace xe
#endif // XENIA_GPU_NULL_NULL_GRAPHICS_SYSTEM_H_