[Vulkan v2] Physical device, [D3D12] Small cleanup
This commit is contained in:
68
src/xenia/ui/vk/vulkan_immediate_drawer.cc
Normal file
68
src/xenia/ui/vk/vulkan_immediate_drawer.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2019 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "xenia/ui/vk/vulkan_immediate_drawer.h"
|
||||
|
||||
namespace xe {
|
||||
namespace ui {
|
||||
namespace vk {
|
||||
|
||||
class VulkanImmediateTexture : public ImmediateTexture {
|
||||
public:
|
||||
VulkanImmediateTexture(uint32_t width, uint32_t height,
|
||||
ImmediateTextureFilter filter, bool repeat);
|
||||
~VulkanImmediateTexture() override;
|
||||
};
|
||||
|
||||
VulkanImmediateTexture::VulkanImmediateTexture(uint32_t width, uint32_t height,
|
||||
ImmediateTextureFilter filter,
|
||||
bool repeat)
|
||||
: ImmediateTexture(width, height) {
|
||||
handle = reinterpret_cast<uintptr_t>(this);
|
||||
}
|
||||
|
||||
VulkanImmediateTexture::~VulkanImmediateTexture() {}
|
||||
|
||||
VulkanImmediateDrawer::VulkanImmediateDrawer(VulkanContext* graphics_context)
|
||||
: ImmediateDrawer(graphics_context), context_(graphics_context) {}
|
||||
|
||||
VulkanImmediateDrawer::~VulkanImmediateDrawer() { Shutdown(); }
|
||||
|
||||
bool VulkanImmediateDrawer::Initialize() { return true; }
|
||||
|
||||
void VulkanImmediateDrawer::Shutdown() {}
|
||||
|
||||
std::unique_ptr<ImmediateTexture> VulkanImmediateDrawer::CreateTexture(
|
||||
uint32_t width, uint32_t height, ImmediateTextureFilter filter, bool repeat,
|
||||
const uint8_t* data) {
|
||||
auto texture =
|
||||
std::make_unique<VulkanImmediateTexture>(width, height, filter, repeat);
|
||||
if (data != nullptr) {
|
||||
UpdateTexture(texture.get(), data);
|
||||
}
|
||||
return std::unique_ptr<ImmediateTexture>(texture.release());
|
||||
}
|
||||
|
||||
void VulkanImmediateDrawer::UpdateTexture(ImmediateTexture* texture,
|
||||
const uint8_t* data) {}
|
||||
|
||||
void VulkanImmediateDrawer::Begin(int render_target_width,
|
||||
int render_target_height) {}
|
||||
|
||||
void VulkanImmediateDrawer::BeginDrawBatch(const ImmediateDrawBatch& batch) {}
|
||||
|
||||
void VulkanImmediateDrawer::Draw(const ImmediateDraw& draw) {}
|
||||
|
||||
void VulkanImmediateDrawer::EndDrawBatch() {}
|
||||
|
||||
void VulkanImmediateDrawer::End() {}
|
||||
|
||||
} // namespace vk
|
||||
} // namespace ui
|
||||
} // namespace xe
|
||||
Reference in New Issue
Block a user