Auto stash before merge of "SP3-4-editor" and "origin/SP3-4-editor"
This commit is contained in:
parent
4b8c842615
commit
bf447c1d1d
|
@ -11,6 +11,8 @@ namespace SHADE
|
|||
SHVkImage::SHVkImage(
|
||||
VmaAllocator const& vmaAllocator,
|
||||
SHImageCreateParams const& imageDetails,
|
||||
unsigned char* data,
|
||||
uint32_t dataSize,
|
||||
VmaMemoryUsage memUsage,
|
||||
VmaAllocationCreateFlags allocFlags
|
||||
) noexcept
|
||||
|
@ -64,7 +66,13 @@ namespace SHADE
|
|||
VmaAllocationInfo allocInfo{};
|
||||
|
||||
VkImage tempImage;
|
||||
vmaCreateImage(vmaAllocator, &imageCreateInfo.operator VkImageCreateInfo&(), &allocCreateInfo, &tempImage, &alloc, &allocInfo);
|
||||
auto result = vmaCreateImage(vmaAllocator, &imageCreateInfo.operator VkImageCreateInfo&(), &allocCreateInfo, &tempImage, &alloc, &allocInfo);
|
||||
|
||||
if (result != VK_SUCCESS)
|
||||
SHVulkanDebugUtil::ReportVkError(vk::Result(result), "Failed to create vulkan image. ");
|
||||
else
|
||||
SHVulkanDebugUtil::ReportVkSuccess("Successfully created image. ");
|
||||
|
||||
vkImage = tempImage;
|
||||
|
||||
//if (allocFlags & )
|
||||
|
|
|
@ -86,10 +86,11 @@ namespace SHADE
|
|||
/*-----------------------------------------------------------------------*/
|
||||
SHVkImage(void) noexcept = default;
|
||||
|
||||
// TODO: Might need to add flags to parameters
|
||||
SHVkImage(
|
||||
VmaAllocator const& vmaAllocator,
|
||||
SHImageCreateParams const& imageDetails,
|
||||
unsigned char* data,
|
||||
uint32_t dataSize,
|
||||
VmaMemoryUsage memUsage,
|
||||
VmaAllocationCreateFlags allocFlags
|
||||
) noexcept;
|
||||
|
|
Loading…
Reference in New Issue