Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating a TextureDimension::D1 texture with block compression does not fail #2045

Open
Wumpf opened this issue Oct 9, 2021 · 0 comments
Open
Labels
area: validation Issues related to validation, diagnostics, and error handling help required We need community help to make this happen.

Comments

@Wumpf
Copy link
Member

Wumpf commented Oct 9, 2021

it will cause vulkan errors, but not cause an appropriate wgpu error

example:

[2021-10-09T08:50:28Z ERROR wgpu_hal::vulkan::instance] VALIDATION [VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251 (0xbebcae79)]
        Validation Error: [ VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251 ] Object 0: handle = 0x21585b7eb78, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0xbebcae79 | vkCreateImage(): Format VK_FORMAT_BC1_RGBA_UNORM_BLOCK is not supported for this combination of parameters and VkGetPhysicalDeviceImageFormatProperties returned back VK_ERROR_FORMAT_NOT_SUPPORTED. The Vulkan spec states: Each of the following values (as described in Image Creation Limits) must not be undefined imageCreateMaxMipLevels, imageCreateMaxArrayLayers, imageCreateMaxExtent, and imageCreateSampleCounts (https://vulkan.lunarg.com/doc/view/1.2.176.1/windows/1.2-extensions/vkspec.html#VUID-VkImageCreateInfo-imageCreateMaxMipLevels-02251)
[2021-10-09T08:50:28Z ERROR wgpu_hal::vulkan::instance]         objects: (type: DEVICE, hndl: 0x21585b7eb78, name: ?)

(it specifically points to mip levels but I think the problem is being 1D in the first place)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: validation Issues related to validation, diagnostics, and error handling help required We need community help to make this happen.
Projects
Status: No status
Development

No branches or pull requests

3 participants