gfx-rs / wgpu-rs

Rust bindings to wgpu native library
https://wgpu.rs
Mozilla Public License 2.0
1.69k stars 186 forks source link

mipmap example: vulkan validation error #783

Closed inodentry closed 3 years ago

inodentry commented 3 years ago

During the mipmap generation, i get these messages on the console:

[0.227542 ERROR]()(no module):
VALIDATION [VUID-VkRenderPassBeginInfo-framebuffer-03211 (0x21cdf2a1)] : Validation Error: [ VUID-VkRenderPassBeginInfo-framebuffer-03211 ] Object 0: handle = 0x350000000035, type = VK_OBJECT_TYPE_RENDER_PASS; | MessageID = 0x21cdf2a1 | vkCmdBeginRenderPass(): Image view #0 created from an image with width set as 512, but image info #0 used to create the framebuffer had width set as 256 The Vulkan spec states: If framebuffer was created with a VkFramebufferCreateInfo::flags value that included VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT, each element of the pAttachments member of a VkRenderPassAttachmentBeginInfo structure included in the pNext chain must be a VkImageView with a width equal to the width member of the corresponding element of VkFramebufferAttachmentsCreateInfo::pAttachments used to create framebuffer (https://www.khronos.org/registry/vulkan/specs/1.2-extensions/html/vkspec.html#VUID-VkRenderPassBeginInfo-framebuffer-03211)
object info: (type: RENDER_PASS, hndl: 0x350000000035)

(and then repeated for width/height, for each mipmap size)

The example still seems to work correctly. I don't know how to interpret the above message.

cwfitzgerald commented 3 years ago

This is a bug in the VVLs, see #762