Diffusion KWin 1d253a3ca3f5

vulkan: Add a ShadowTextureManager

Authored by fredrik on Sep 15 2017, 2:23 PM.

Description

vulkan: Add a ShadowTextureManager

The ShadowTextureManager class is responsible for creating and managing
textures for VulkanShadows. The textures are refcounted and stored in a
hash table, using the image as the key. When a refcount drops to
zero, the texture is removed from the hash table and deleted.

This is to prevent multiple identical textures from being created when
clients set the same shadow property on multiple windows.

Details

Committed
fredrikFeb 16 2018, 4:58 PM
Parents
R108:01344b7c2343: vulkan/window: Render shadows
Branches
Unknown
Tags
Unknown