diharaw / hybrid-rendering

A Vulkan sample that demonstrates a Rasterization and Ray Tracing Hybrid Rendering Pipeline.
MIT License
782 stars 46 forks source link

Cannot run the application #16

Open HMar2022 opened 1 year ago

HMar2022 commented 1 year ago

[ 19:24:42 | ERROR ] : Vulkan - Validation : Validation Error: [ VUID-VkGraphicsPipelineCreateInfo-layout-07987 ] Object 0: handle = 0xb6c14b000000060c, type = VK_OBJECT_TYPE_SHADER_MODULE; Object 1: handle = 0xb1d799000000060e, type = VK_OBJECT_TYPE_PIPELINE_LAYOUT; | MessageID = 0xfbdd4d2e | vkCreateGraphicsPipelines(): pCreateInfos[0] VK_SHADER_STAGE_VERTEX_BIT has a push constant buffer Block with range [0, 136] which outside the pipeline layout range of [0, 76]. The Vulkan spec states: If a push constant block is declared in a shader, a push constant range in layout must match both the shader stage and range (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-VkGraphicsPipelineCreateInfo-layout-07987) , FILE : vk.cpp , LINE : 156

[ 19:24:42 | ERROR ] : Vulkan - Validation : Validation Error: [ VUID-VkGraphicsPipelineCreateInfo-layout-07987 ] Object 0: handle = 0x68aaa000000060d, type = VK_OBJECT_TYPE_SHADER_MODULE; Object 1: handle = 0xb1d799000000060e, type = VK_OBJECT_TYPE_PIPELINE_LAYOUT; | MessageID = 0xfbdd4d2e | vkCreateGraphicsPipelines(): pCreateInfos[0] VK_SHADER_STAGE_FRAGMENT_BIT has a push constant buffer Block with range [0, 140] which outside the pipeline layout range of [0, 76]. The Vulkan spec states: If a push constant block is declared in a shader, a push constant range in layout must match both the shader stage and range (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-VkGraphicsPipelineCreateInfo-layout-07987) , FILE : vk.cpp , LINE : 156

[ 19:24:43 | ERROR ] : Vulkan - Validation : Validation Error: [ VUID-vkCmdDispatch-mipmapMode-04770 ] Object 0: handle = 0xdc9b430000000625, name = Shadows Ray Trace Read, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; Object 1: handle = 0xda6ce50000000156, name = Nearest Sampler, type = VK_OBJECT_TYPE_SAMPLER; Object 2: handle = 0xbef9ee0000000611, name = Shadows Ray Trace, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x3019e15a | vkCmdDispatch: Descriptor set VkDescriptorSet 0xdc9b430000000625[Shadows Ray Trace Read] Sampler (VkSampler 0xda6ce50000000156[Nearest Sampler]) is set to use VK_SAMPLER_MIPMAP_MODE_LINEAR with compareEnable is set to VK_FALSE, but image view's (VkImageView 0xbef9ee0000000611[Shadows Ray Trace]) format (VK_FORMAT_R32_UINT) does not contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT in its format features. The Vulkan spec states: If a VkSampler created with mipmapMode equal to VK_SAMPLER_MIPMAP_MODE_LINEAR and compareEnable equal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view's format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdDispatch-mipmapMode-04770) , FILE : vk.cpp , LINE : 156

[ 19:24:43 | ERROR ] : Vulkan - Validation : Validation Error: [ VUID-vkCmdDispatch-mipmapMode-04770 ] Object 0: handle = 0xb64738000000065c, name = AO Ray Trace Read, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; Object 1: handle = 0xda6ce50000000156, name = Nearest Sampler, type = VK_OBJECT_TYPE_SAMPLER; Object 2: handle = 0xda70bf000000064a, name = AO Ray Trace, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x3019e15a | vkCmdDispatch: Descriptor set VkDescriptorSet 0xb64738000000065c[AO Ray Trace Read] Sampler (VkSampler 0xda6ce50000000156[Nearest Sampler]) is set to use VK_SAMPLER_MIPMAP_MODE_LINEAR with compareEnable is set to VK_FALSE, but image view's (VkImageView 0xda70bf000000064a[AO Ray Trace]) format (VK_FORMAT_R32_UINT) does not contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT in its format features. The Vulkan spec states: If a VkSampler created with mipmapMode equal to VK_SAMPLER_MIPMAP_MODE_LINEAR and compareEnable equal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view's format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdDispatch-mipmapMode-04770) , FILE : vk.cpp , LINE : 156

[ 19:24:43 | ERROR ] : Vulkan - Validation : Validation Error: [ VUID-vkCmdDispatch-mipmapMode-04770 ] Object 0: handle = 0xdc9b430000000625, name = Shadows Ray Trace Read, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; Object 1: handle = 0xda6ce50000000156, name = Nearest Sampler, type = VK_OBJECT_TYPE_SAMPLER; Object 2: handle = 0xbef9ee0000000611, name = Shadows Ray Trace, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x3019e15a | vkCmdDispatch: Descriptor set VkDescriptorSet 0xdc9b430000000625[Shadows Ray Trace Read] Sampler (VkSampler 0xda6ce50000000156[Nearest Sampler]) is set to use VK_SAMPLER_MIPMAP_MODE_LINEAR with compareEnable is set to VK_FALSE, but image view's (VkImageView 0xbef9ee0000000611[Shadows Ray Trace]) format (VK_FORMAT_R32_UINT) does not contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT in its format features. The Vulkan spec states: If a VkSampler created with mipmapMode equal to VK_SAMPLER_MIPMAP_MODE_LINEAR and compareEnable equal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view's format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdDispatch-mipmapMode-04770) , FILE : vk.cpp , LINE : 156

[ 19:24:43 | ERROR ] : Vulkan - Validation : Validation Error: [ VUID-vkCmdDispatch-mipmapMode-04770 ] Object 0: handle = 0xb64738000000065c, name = AO Ray Trace Read, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; Object 1: handle = 0xda6ce50000000156, name = Nearest Sampler, type = VK_OBJECT_TYPE_SAMPLER; Object 2: handle = 0xda70bf000000064a, name = AO Ray Trace, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x3019e15a | vkCmdDispatch: Descriptor set VkDescriptorSet 0xb64738000000065c[AO Ray Trace Read] Sampler (VkSampler 0xda6ce50000000156[Nearest Sampler]) is set to use VK_SAMPLER_MIPMAP_MODE_LINEAR with compareEnable is set to VK_FALSE, but image view's (VkImageView 0xda70bf000000064a[AO Ray Trace]) format (VK_FORMAT_R32_UINT) does not contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT in its format features. The Vulkan spec states: If a VkSampler created with mipmapMode equal to VK_SAMPLER_MIPMAP_MODE_LINEAR and compareEnable equal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view's format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdDispatch-mipmapMode-04770) , FILE : vk.cpp , LINE : 156

[ 19:24:43 | ERROR ] : Vulkan - Validation : Validation Error: [ VUID-vkCmdDispatch-mipmapMode-04770 ] Object 0: handle = 0xdc9b430000000625, name = Shadows Ray Trace Read, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; Object 1: handle = 0xda6ce50000000156, name = Nearest Sampler, type = VK_OBJECT_TYPE_SAMPLER; Object 2: handle = 0xbef9ee0000000611, name = Shadows Ray Trace, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x3019e15a | vkCmdDispatch: Descriptor set VkDescriptorSet 0xdc9b430000000625[Shadows Ray Trace Read] Sampler (VkSampler 0xda6ce50000000156[Nearest Sampler]) is set to use VK_SAMPLER_MIPMAP_MODE_LINEAR with compareEnable is set to VK_FALSE, but image view's (VkImageView 0xbef9ee0000000611[Shadows Ray Trace]) format (VK_FORMAT_R32_UINT) does not contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT in its format features. The Vulkan spec states: If a VkSampler created with mipmapMode equal to VK_SAMPLER_MIPMAP_MODE_LINEAR and compareEnable equal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view's format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdDispatch-mipmapMode-04770) , FILE : vk.cpp , LINE : 156

[ 19:24:43 | ERROR ] : Vulkan - Validation : Validation Error: [ VUID-vkCmdDispatch-mipmapMode-04770 ] Object 0: handle = 0xb64738000000065c, name = AO Ray Trace Read, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; Object 1: handle = 0xda6ce50000000156, name = Nearest Sampler, type = VK_OBJECT_TYPE_SAMPLER; Object 2: handle = 0xda70bf000000064a, name = AO Ray Trace, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x3019e15a | vkCmdDispatch: Descriptor set VkDescriptorSet 0xb64738000000065c[AO Ray Trace Read] Sampler (VkSampler 0xda6ce50000000156[Nearest Sampler]) is set to use VK_SAMPLER_MIPMAP_MODE_LINEAR with compareEnable is set to VK_FALSE, but image view's (VkImageView 0xda70bf000000064a[AO Ray Trace]) format (VK_FORMAT_R32_UINT) does not contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT in its format features. The Vulkan spec states: If a VkSampler created with mipmapMode equal to VK_SAMPLER_MIPMAP_MODE_LINEAR and compareEnable equal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view's format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdDispatch-mipmapMode-04770) , FILE : vk.cpp , LINE : 156

[ 19:24:43 | ERROR ] : Vulkan - Validation : Validation Error: [ VUID-vkCmdDispatch-mipmapMode-04770 ] Object 0: handle = 0xdc9b430000000625, name = Shadows Ray Trace Read, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; Object 1: handle = 0xda6ce50000000156, name = Nearest Sampler, type = VK_OBJECT_TYPE_SAMPLER; Object 2: handle = 0xbef9ee0000000611, name = Shadows Ray Trace, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x3019e15a | vkCmdDispatch: Descriptor set VkDescriptorSet 0xdc9b430000000625[Shadows Ray Trace Read] Sampler (VkSampler 0xda6ce50000000156[Nearest Sampler]) is set to use VK_SAMPLER_MIPMAP_MODE_LINEAR with compareEnable is set to VK_FALSE, but image view's (VkImageView 0xbef9ee0000000611[Shadows Ray Trace]) format (VK_FORMAT_R32_UINT) does not contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT in its format features. The Vulkan spec states: If a VkSampler created with mipmapMode equal to VK_SAMPLER_MIPMAP_MODE_LINEAR and compareEnable equal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view's format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdDispatch-mipmapMode-04770) , FILE : vk.cpp , LINE : 156

[ 19:24:43 | ERROR ] : Vulkan - Validation : Validation Error: [ VUID-vkCmdDispatch-mipmapMode-04770 ] Object 0: handle = 0xb64738000000065c, name = AO Ray Trace Read, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; Object 1: handle = 0xda6ce50000000156, name = Nearest Sampler, type = VK_OBJECT_TYPE_SAMPLER; Object 2: handle = 0xda70bf000000064a, name = AO Ray Trace, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x3019e15a | vkCmdDispatch: Descriptor set VkDescriptorSet 0xb64738000000065c[AO Ray Trace Read] Sampler (VkSampler 0xda6ce50000000156[Nearest Sampler]) is set to use VK_SAMPLER_MIPMAP_MODE_LINEAR with compareEnable is set to VK_FALSE, but image view's (VkImageView 0xda70bf000000064a[AO Ray Trace]) format (VK_FORMAT_R32_UINT) does not contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT in its format features. The Vulkan spec states: If a VkSampler created with mipmapMode equal to VK_SAMPLER_MIPMAP_MODE_LINEAR and compareEnable equal to VK_FALSE is used to sample a VkImageView as a result of this command, then the image view's format features must contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT (https://vulkan.lunarg.com/doc/view/1.3.250.1/windows/1.3-extensions/vkspec.html#VUID-vkCmdDispatch-mipmapMode-04770) , FILE : vk.cpp , LINE : 156

[ 19:24:43 | FATAL ] : (Vulkan) Failed to submit command buffer! , FILE : vk.cpp , LINE : 3813

livinamuk commented 10 months ago

Same here, did you get it running?

diharaw commented 10 months ago

Hi, it seem the newer Vulkan SDKs have caught a few more validation bugs. Unfortunately I don’t have the time to work on this anytime soon, but if you fix it I’ll be happy to accept a PR.

livinamuk commented 10 months ago

No problem, if I get it working I'll make a PR for sure. Busy with work? Are you interetsed in any freelance?

diharaw commented 10 months ago

Sorry, I don't have time for freelance work at the moment. I'm busy with my full time work as is :)