{"action":"opened","issue":{"url":"https://api.github.com/repos/KhronosGroup/Vulkan-Docs/issues/161","repository_url":"https://api.github.com/repos/KhronosGroup/Vulkan-Docs","labels_url":"https://api.github.com/repos/KhronosGroup/Vulkan-Docs/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/KhronosGroup/Vulkan-Docs/issues/161/comments","events_url":"https://api.github.com/repos/KhronosGroup/Vulkan-Docs/issues/161/events","html_url":"https://github.com/KhronosGroup/Vulkan-Docs/issues/161","id":144676117,"number":161,"title":"Discontinuous descriptor set indices","user":{"login":"Duttenheim","id":6490176,"avatar_url":"https://avatars.githubusercontent.com/u/6490176?v=3","gravatar_id":"","url":"https://api.github.com/users/Duttenheim","html_url":"https://github.com/Duttenheim","followers_url":"https://api.github.com/users/Duttenheim/followers","following_url":"https://api.github.com/users/Duttenheim/following{/other_user}","gists_url":"https://api.github.com/users/Duttenheim/gists{/gist_id}","starred_url":"https://api.github.com/users/Duttenheim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Duttenheim/subscriptions","organizations_url":"https://api.github.com/users/Duttenheim/orgs","repos_url":"https://api.github.com/users/Duttenheim/repos","events_url":"https://api.github.com/users/Duttenheim/events{/privacy}","received_events_url":"https://api.github.com/users/Duttenheim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-30T18:10:36Z","updated_at":"2016-03-30T18:10:36Z","closed_at":null,"body":"If a shader implements descriptor sets with indexes which is not a continuous series, is the shader still valid? If you have one set which is decorated as layout(set=1) and another where you have layout(set=3), should the vkCreatePipelineLayout then define only two sets (1 and 3) or should they define the entire range 1..3 inclusively?\r\n\r\nIn the eventuality a range of sets is the valid way, are you supposed to implement the 2'nd (in the example) descriptor set layout in the range to be empty by setting the pBindings to NULL and the bindingCount to 0?\r\n\r\nThe Khronos reference compiler doesn't raise an error or warning if the sets are not a continuous series, neither does the LunarG validation layers when creating descriptor layouts, pipeline objects or when creating shader modules."}}