Skip to content

Fixed the valid Layer error and black screen issue in 23_descriptor_s…#363

Closed
hu-qing-hua wants to merge 1 commit intoKhronosGroup:mainfrom
hu-qing-hua:FixedValidLayererrorandBlackScreen_23
Closed

Fixed the valid Layer error and black screen issue in 23_descriptor_s…#363
hu-qing-hua wants to merge 1 commit intoKhronosGroup:mainfrom
hu-qing-hua:FixedValidLayererrorandBlackScreen_23

Conversation

@hu-qing-hua
Copy link
Copy Markdown

Issues & Fixes

1. Validation Error: Missing Descriptor Set Layout

Error:

validation layer: type { Validation } msg: vkCreateGraphicsPipelines(): pCreateInfos[0].pStages[0] SPIR-V (VK_SHADER_STAGE_VERTEX_BIT) uses descriptor [Set 0, Binding 0, variable "ubo"] but the binding was not declared in the VkPipelineLayoutCreateInfo::pSetLayouts[0].

Cause:
I think this is the validation layer telling you that the shader declared a UBO with set=0 (if not specified, it's the default), binding=0, but there's no layout with set 0 in the pipeline layout.

Fix:
I fixed the creation of pipelineLayoutInfo.


2. The window was completely black.

Cause:
I found that the triangle composed of indices 0, 1, 2 was rotating counterclockwise on the screen, while you set the front side to clockwise, and the back side culling took effect, so this triangle was discarded.

Fix:
I modified the rasterizer's creation.

@hu-qing-hua
Copy link
Copy Markdown
Author

Closing this PR — the issue is already resolved in #358.

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

Successfully merging this pull request may close these issues.

1 participant