Devsh-Graphics-Programming / Nabla

Vulkan, OptiX and CUDA Interoperation Modular Rendering Library and Framework for PC/Linux/Android
http://devsh.eu
Apache License 2.0
443 stars 48 forks source link

Separable image sampler amortized lookups #702

Closed Fletterio closed 2 days ago

Fletterio commented 2 days ago

Description

When validating writes/copies of descriptor sets, we do a binary search via CBindingRedirect. This same search is then repeated later in the processing of the write/copy, which is unnecessary. These changes avoid the duped searches

Testing

Examples that wrote to descriptor sets work fine. I couldn't find any examples that had a copy (there is one in the examples repo but not under build/examples_tests so I assume it's disabled).

TODO list:

Merge the separable_image_sampler branch before this one