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:
@@ -6,6 +6,7 @@
|
||||
|
||||
#include <span>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
namespace Libs::Graphics {
|
||||
@@ -64,6 +65,11 @@ struct ImageImageCopy {
|
||||
int dst_z = 0;
|
||||
};
|
||||
|
||||
[[nodiscard]] std::vector<ImageBufferCopy>
|
||||
MakeLayeredImageBufferCopies(uint32_t layers, uint64_t slice_size, uint32_t pitch, uint32_t width,
|
||||
uint32_t height,
|
||||
VkImageAspectFlags aspect = VK_IMAGE_ASPECT_COLOR_BIT);
|
||||
|
||||
enum class StagingBufferType { Texture, Vertex, ReadBack };
|
||||
|
||||
class UtilScratchBuffer {
|
||||
|
||||
Reference in New Issue
Block a user