Module sampler

Source
Available on vulkan only.
Expand description

Sampler cache for Vulkan backend.

Nearly identical to the DX12 sampler cache, without descriptor heap management.

Structsยง

CacheEntry ๐Ÿ”’
Entry in the sampler cache.
HashableSamplerCreateInfo ๐Ÿ”’
[vk::SamplerCreateInfo] is not hashable, so we wrap it in a newtype that is.
SamplerCache ๐Ÿ”’
Global sampler cache.

Constantsยง

ENABLE_SAMPLER_CACHE_CUTOFF ๐Ÿ”’
If the allowed sampler count is above this value, the sampler cache is disabled.