mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 13:56:59 +01:00
graphics: refactoring #2
This commit is contained in:
@@ -2,28 +2,13 @@
|
||||
#define EMULATOR_SRC_GRAPHICS_HOST_GPU_VMA_H_
|
||||
|
||||
#include "common/common.h"
|
||||
#include "graphics/host_gpu/vulkanCommon.h"
|
||||
#include "graphics/host_gpu/graphicContext.h"
|
||||
|
||||
namespace Libs::Graphics {
|
||||
|
||||
struct GraphicContext;
|
||||
struct VulkanBuffer;
|
||||
struct VulkanImage;
|
||||
struct VulkanMemory;
|
||||
|
||||
bool VulkanCreateAllocator(GraphicContext* ctx);
|
||||
void VulkanDestroyAllocator(GraphicContext* ctx);
|
||||
uint64_t VulkanNextMemoryUniqueId();
|
||||
void VulkanTrackAllocation(const VulkanMemory* memory);
|
||||
void VulkanUntrackAllocation(const VulkanMemory* memory);
|
||||
void VulkanLogMemoryBudget(GraphicContext* ctx);
|
||||
void VulkanCreateBuffer(GraphicContext* ctx, uint64_t size, VulkanBuffer* buffer);
|
||||
void VulkanDeleteBuffer(GraphicContext* ctx, VulkanBuffer* buffer);
|
||||
bool VulkanCreateImage(GraphicContext* ctx, const vk::ImageCreateInfo& image_info,
|
||||
VulkanImage* image);
|
||||
void VulkanDeleteImage(GraphicContext* ctx, VulkanImage* image);
|
||||
void VulkanMapMemory(GraphicContext* ctx, VulkanMemory* memory, void** data);
|
||||
void VulkanUnmapMemory(GraphicContext* ctx, VulkanMemory* memory);
|
||||
void VulkanTrackAllocation(const VulkanMemory& memory);
|
||||
void VulkanUntrackAllocation(const VulkanMemory& memory);
|
||||
|
||||
} // namespace Libs::Graphics
|
||||
|
||||
|
||||
Reference in New Issue
Block a user