Merge pull request #1044 from cdavis5e/no-compressed-linear
MVKImage: Reject attempts to create compressed linear images.
This commit is contained in:
commit
5cbd809d12
@ -960,6 +960,10 @@ bool MVKImage::validateLinear(const VkImageCreateInfo* pCreateInfo, bool isAttac
|
||||
setConfigurationResult(reportError(VK_ERROR_FEATURE_NOT_PRESENT, "vkCreateImage() : If tiling is VK_IMAGE_TILING_LINEAR, format must not be a depth/stencil format."));
|
||||
isLin = false;
|
||||
}
|
||||
if (getPixelFormats()->getFormatType(pCreateInfo->format) == kMVKFormatCompressed) {
|
||||
setConfigurationResult(reportError(VK_ERROR_FEATURE_NOT_PRESENT, "vkCreateImage() : If tiling is VK_IMAGE_TILING_LINEAR, format must not be a compressed format."));
|
||||
isLin = false;
|
||||
}
|
||||
|
||||
if (pCreateInfo->mipLevels > 1) {
|
||||
setConfigurationResult(reportError(VK_ERROR_FEATURE_NOT_PRESENT, "vkCreateImage() : If tiling is VK_IMAGE_TILING_LINEAR, mipLevels must be 1."));
|
||||
|
Loading…
x
Reference in New Issue
Block a user