mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 08:13:05 +00:00
Fix layered image subresource synchronization
This commit is contained in:
1 parent
ae86249765
commit
41114be8da
10 files changed
+207
-62
No files matched your search
@@ -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