mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-18 21:47:13 +00:00
1107462f05
* If a pipeline doesn't statically access a descriptor set, the corresponding descriptor set layout in its pipeline layout can be essentially anything and it doesn't have to match the actual descriptor set bound at a draw. It's just ignored. * Rather than check for static access ourselves we take advantage of another fact - when the descriptor set is bound it must be compatible with the set layout from the bind call's pipeline layout. If the pipeline *does* statically use the descriptor set, its pipeline layout must be compatible with the bind call's pipeline layout for that set. * So the end result is that we can safely use the bind call's pipeline layout for iterating over bound descriptors, secure in the knowledge that it's always valid for that data, and if the pipeline uses it then it's also valid for the pipeline.