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

Can't create FrameBuffers withoud depth #8

Open
FROL256 opened this issue Sep 24, 2021 · 0 comments
Open

Can't create FrameBuffers withoud depth #8

FROL256 opened this issue Sep 24, 2021 · 0 comments

Comments

@FROL256
Copy link
Contributor

FROL256 commented Sep 24, 2021

passing nullptr to last parameter of vk_utils::createFrameBuffers leads to validation layers errors

Validation: Validation Error: [ VUID-VkFramebufferCreateInfo-attachmentCount-00876 ] Object 0: handle = 0xdcc8fd0000000012, type = VK_OBJECT_TYPE_RENDER_PASS; | MessageID = 0xd452b83b | vkCreateFramebuffer(): VkFramebufferCreateInfo attachmentCount of 1 does not match attachmentCount of 2 of VkRenderPass 0xdcc8fd0000000012[] being used to create Framebuffer. The Vulkan spec states: attachmentCount must be equal to the attachment count specified in renderPass (https://vulkan.lunarg.com/doc/view/1.2.189.0/linux/1.2-extensions/vkspec.html#VUID-VkFramebufferCreateInfo-attachmentCount-00876)
Validation: Validation Error: [ VUID-VkFramebufferCreateInfo-attachmentCount-00876 ] Object 0: handle = 0xdcc8fd0000000012, type = VK_OBJECT_TYPE_RENDER_PASS; | MessageID = 0xd452b83b | vkCreateFramebuffer(): VkFramebufferCreateInfo attachmentCount of 1 does not match attachmentCount of 2 of VkRenderPass 0xdcc8fd0000000012[] being used to create Framebuffer. The Vulkan spec states: attachmentCount must be equal to the attachment count specified in renderPass (https://vulkan.lunarg.com/doc/view/1.2.189.0/linux/1.2-extensions/vkspec.html#VUID-VkFramebufferCreateInfo-attachmentCount-00876)
Validation: Validation Error: [ UNASSIGNED-CoreValidation-DrawState-InvalidRenderpass ] Object 0: handle = 0x555555eab0a8, type = VK_OBJECT_TYPE_COMMAND_BUFFER; | MessageID = 0xa1662b9 | You cannot start a render pass using a framebuffer with a different number of attachments.
Validation: Validation Error: [ VUID-VkRenderPassBeginInfo-framebuffer-parameter ] Object 0: handle = 0xdcc8fd0000000012, type = VK_OBJECT_TYPE_RENDER_PASS; Object 1: handle = 0xd897d90000000016, type = VK_OBJECT_TYPE_FRAMEBUFFER; Object 2: handle = 0x7ffff7be0be0, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0xe02fa864 | vkCmdBeginRenderPass(): VkFramebuffer 0xd897d90000000016[] pAttachments[1] = VkImageView 0x7ffff7be0be0[] is not a valid VkImageView handle The Vulkan spec states: framebuffer must be a valid VkFramebuffer handle (https://vulkan.lunarg.com/doc/view/1.2.189.0/linux/1.2-extensions/vkspec.html#VUID-VkRenderPassBeginInfo-framebuffer-parameter)
terminate called after throwing an instance of 'std::out_of_range'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant