mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 08:13:05 +00:00
Refactor buffer image write classification
This commit is contained in:
1 parent
41114be8da
commit
a96b5111e6
5 files changed
+172
-163
No files matched your search
@@ -26,8 +26,8 @@ std::vector<ImageBufferCopy> MakeLayeredImageBufferCopies(uint32_t layers, uint6
|
||||
uint32_t pitch, uint32_t width,
|
||||
uint32_t height,
|
||||
VkImageAspectFlags aspect) {
|
||||
if (layers == 0 || slice_size == 0 || slice_size > UINT32_MAX ||
|
||||
slice_size > UINT32_MAX / layers || pitch < width || width == 0 || height == 0) {
|
||||
if (layers == 0 || slice_size == 0 || slice_size > UINT32_MAX / layers || pitch < width ||
|
||||
width == 0 || height == 0) {
|
||||
EXIT("invalid layered image-buffer copy layout\n");
|
||||
}
|
||||
std::vector<ImageBufferCopy> regions(layers);
|
||||
|
||||
Reference in new issue
Block a user