Falcor icon indicating copy to clipboard operation
Falcor copied to clipboard

A lot of Vulkan warnings on close

Open cusiman7 opened this issue 7 years ago • 0 comments

There are a lot of Vulkan warnings when closing ForwardRenderer. This should be addressed and cleaned up.

While investigating #167 I came across some odd code in VKResourceViews.cpp. When I set this destructor to default Falcor crashes on load. I've discovered that it has to do with two generateMips calls made by CSM.cpp and ToneMapping.cpp. Generate mips seems to destroy the RenderTargetViews of the framebuffers and they aren't regenerated for some reason. When I comment out those two lines Falcor no longer crashes and Vulkan no longer emits ImageView warnings on close.

There are a number of other Vulkan warnings that I have not been able to track down that are emitted when vkDestroyDevice is called.

#167 persists unfortunately.

cusiman7 avatar Dec 04 '18 00:12 cusiman7