Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Do we need to rebind a descriptor table after CopyDescriptors operation?

$
0
0
I am working on optimizing our descriptor management code. Currently, I am following most of the guidelines like sorting descriptors by update frequency,... I have two types of descriptor ranges: Static (DESCRIPTOR_RANGE_FLAG_NONE) and Dynamic(DESCRIPTORS_VOLATILE). So lets say I have this scenario: pCmd->bindDescriptorTable(pTable); for (uint32_t i = 0; i < meshCount; ++i) { // descriptor is created in a range with flag DESCRIPTORS_VOLATILE // setDescriptor will call CopyDescriptorsSimple to copy descriptor handle pDescriptor[i] to the appropriate location in pTable pTable->setDescriptor("descriptor", pDescriptor[i]); } Do I need to call bindDescriptorTable inside the loop?

Viewing all articles
Browse latest Browse all 17825

Trending Articles