baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
9.06k stars 1.35k forks source link

Skip incompatible image formats when building discard pattern #3477

Closed cmannett85-arm closed 2 weeks ago

cmannett85-arm commented 2 weeks ago

If the pattern's dimensions are not an integer multiple of the format's block size, then do not attempt to create the discard pattern, just exit early.

I initially looked into having the pattern's dimenions adjust to the incoming block size, but it's a constant used across all APIs and multiple parts of the app, so I'm not convinced it's worth the effort. Correct me if that's wrong!

Fixes #3466