mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
Fix layered image subresource synchronization
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Libs::Graphics {
|
||||
|
||||
class CommandBuffer;
|
||||
struct DepthStencilVulkanImage;
|
||||
struct ImageImageCopy;
|
||||
struct RenderTextureVulkanImage;
|
||||
struct ShaderVertexInputInfo;
|
||||
struct VulkanImage;
|
||||
@@ -236,6 +237,7 @@ struct RenderColorInfo {
|
||||
VkFormat format = VK_FORMAT_UNDEFINED;
|
||||
VkExtent2D extent = {};
|
||||
uint32_t base_mip_level = 0;
|
||||
uint32_t base_array_layer = 0;
|
||||
uint64_t base_addr = 0;
|
||||
uint64_t buffer_size = 0;
|
||||
uint32_t target_slot = 0;
|
||||
@@ -243,6 +245,12 @@ struct RenderColorInfo {
|
||||
VkClearColorValue color_clear_value {};
|
||||
};
|
||||
|
||||
[[nodiscard]] bool IsSameColorResolveSubresource(const RenderColorInfo& src,
|
||||
const RenderColorInfo& dst);
|
||||
[[nodiscard]] ImageImageCopy MakeColorResolveCopy(const RenderColorInfo& src,
|
||||
const RenderColorInfo& dst, uint32_t width,
|
||||
uint32_t height);
|
||||
|
||||
struct ScissorRect {
|
||||
int left = 0;
|
||||
int top = 0;
|
||||
|
||||
Reference in New Issue
Block a user