RenderCache::ClearEDRAMColor/ClearEDRAMDepthStencil

This commit is contained in:
Dr. Chat
2016-03-12 11:49:59 -06:00
parent 635d095b87
commit 5ba04b9e55
2 changed files with 94 additions and 1 deletions

View File

@@ -12,6 +12,7 @@
#include "xenia/gpu/register_file.h"
#include "xenia/gpu/shader.h"
#include "xenia/gpu/texture_info.h"
#include "xenia/gpu/vulkan/vulkan_shader.h"
#include "xenia/gpu/xenos.h"
#include "xenia/ui/vulkan/vulkan.h"
@@ -267,6 +268,16 @@ class RenderCache {
bool color_or_depth, VkOffset3D offset,
VkExtent3D extents);
// Queues commands to clear EDRAM contents with a solid color
void ClearEDRAMColor(VkCommandBuffer command_buffer, uint32_t edram_base,
ColorRenderTargetFormat format, uint32_t pitch,
uint32_t height, float* color);
// Queues commands to clear EDRAM contents with depth/stencil values.
void ClearEDRAMDepthStencil(VkCommandBuffer command_buffer,
uint32_t edram_base,
DepthRenderTargetFormat format, uint32_t pitch,
uint32_t height, float depth, uint32_t stencil);
private:
// Parses the current state into a configuration object.
bool ParseConfiguration(RenderConfiguration* config);