Fix incorrect create image view error message (#334)

The function "createImageView" has a somewhat incorrect error message,
saying that it failed to create a texture image view. However, the
function is also used by more than simply the texture image view
creation process(e.g., the swapchain image view creation process, "createImageViews").
This commit is contained in:
Lucas Merritt 2023-05-09 13:39:12 -06:00 committed by GitHub
parent e064106c98
commit 6fa5edd222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

@ -782,7 +782,7 @@ private:
VkImageView imageView;
if (vkCreateImageView(device, &viewInfo, nullptr, &imageView) != VK_SUCCESS) {
throw std::runtime_error("failed to create texture image view!");
throw std::runtime_error("failed to create image view!");
}
return imageView;

View File

@ -796,7 +796,7 @@ private:
VkImageView imageView;
if (vkCreateImageView(device, &viewInfo, nullptr, &imageView) != VK_SUCCESS) {
throw std::runtime_error("failed to create texture image view!");
throw std::runtime_error("failed to create image view!");
}
return imageView;

View File

@ -873,7 +873,7 @@ private:
VkImageView imageView;
if (vkCreateImageView(device, &viewInfo, nullptr, &imageView) != VK_SUCCESS) {
throw std::runtime_error("failed to create texture image view!");
throw std::runtime_error("failed to create image view!");
}
return imageView;

View File

@ -880,7 +880,7 @@ private:
VkImageView imageView;
if (vkCreateImageView(device, &viewInfo, nullptr, &imageView) != VK_SUCCESS) {
throw std::runtime_error("failed to create texture image view!");
throw std::runtime_error("failed to create image view!");
}
return imageView;

View File

@ -974,7 +974,7 @@ private:
VkImageView imageView;
if (vkCreateImageView(device, &viewInfo, nullptr, &imageView) != VK_SUCCESS) {
throw std::runtime_error("failed to create texture image view!");
throw std::runtime_error("failed to create image view!");
}
return imageView;

View File

@ -1024,7 +1024,7 @@ private:
VkImageView imageView;
if (vkCreateImageView(device, &viewInfo, nullptr, &imageView) != VK_SUCCESS) {
throw std::runtime_error("failed to create texture image view!");
throw std::runtime_error("failed to create image view!");
}
return imageView;

View File

@ -76,7 +76,7 @@ VkImageView createImageView(VkImage image, VkFormat format) {
VkImageView imageView;
if (vkCreateImageView(device, &viewInfo, nullptr, &imageView) != VK_SUCCESS) {
throw std::runtime_error("failed to create texture image view!");
throw std::runtime_error("failed to create image view!");
}
return imageView;