vulkan - Descriptor bindings and binding numbers -


i'm bit confused language used in spec concerning descriptor bindings described vkdescriptorsetlayoutbinding struct. binding element

is binding number of entry , corresponds resource of same binding number in shader stages.

as stated in 14.5.3

a variable identified descriptorset decoration of s , binding decoration of b indicates variable associated vkdescriptorsetlayoutbinding has binding equal b in psetlayouts[s] specified in vkpipelinelayoutcreateinfo

so if correctly descriptor bindings described vkdescriptorsetlayoutbinding must have entry every active resource variable in set. resource variable referred each descriptor binding dictated binding variable , binding decoration of each variable.

so far good. confusing part when calling vkupdatedescriptorsets. struct vkwritedescriptorset has element dstbindng

is descriptor binding within set.

i'm confused whether dstbindng's value must same binding number used decoration in variable resource, or should used index inside vkdescriptorsetlayoutbinding array.


Comments

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -