41 lines
1.5 KiB
C++
41 lines
1.5 KiB
C++
/**
|
|
******************************************************************************
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
******************************************************************************
|
|
* Copyright 2022 Ben Vanik. All rights reserved. *
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
******************************************************************************
|
|
*/
|
|
|
|
#include "xenia/gpu/vulkan/vulkan_graphics_system.h"
|
|
|
|
#include "xenia/gpu/vulkan/vulkan_command_processor.h"
|
|
#include "xenia/ui/vulkan/vulkan_provider.h"
|
|
#include "xenia/xbox.h"
|
|
|
|
namespace xe {
|
|
namespace gpu {
|
|
namespace vulkan {
|
|
|
|
VulkanGraphicsSystem::VulkanGraphicsSystem() {}
|
|
|
|
VulkanGraphicsSystem::~VulkanGraphicsSystem() {}
|
|
|
|
X_STATUS VulkanGraphicsSystem::Setup(Memory* memory, cpu::Processor* processor,
|
|
kernel::KernelState* kernel_state,
|
|
ui::WindowedAppContext* app_context,
|
|
bool is_surface_required) {
|
|
provider_ = xe::ui::vulkan::VulkanProvider::Create(is_surface_required);
|
|
return GraphicsSystem::Setup(memory, processor, kernel_state, app_context,
|
|
is_surface_required);
|
|
}
|
|
|
|
std::unique_ptr<CommandProcessor>
|
|
VulkanGraphicsSystem::CreateCommandProcessor() {
|
|
return std::make_unique<VulkanCommandProcessor>(this, kernel_state_);
|
|
}
|
|
|
|
} // namespace vulkan
|
|
} // namespace gpu
|
|
} // namespace xe
|