class DescriptorSetAllocator

Defined at line 22 of file ../../src/ui/lib/escher/vk/impl/descriptor_set_allocator.h

DescriptorSetAllocator wraps HashCache to provide a frame-based cache for

Vulkan descriptor sets. The eviction semantics are the same as a HashCache

with FramesUntilEviction == 2.

Public Methods

void DescriptorSetAllocator (vk::Device device, DescriptorSetLayout layout, const SamplerPtr & immutable_sampler)

Defined at line 13 of file ../../src/ui/lib/escher/vk/impl/descriptor_set_allocator.cc

void BeginFrame ()

Defined at line 27 of file ../../src/ui/lib/escher/vk/impl/descriptor_set_allocator.h

void Clear ()

Defined at line 28 of file ../../src/ui/lib/escher/vk/impl/descriptor_set_allocator.h

std::pair<vk::DescriptorSet, bool> Get (Hash hash)

Get the descriptor set corresponding to the hashed value. The second

element of the pair is true if the descriptor set already contains valid

data, and false if new descriptor values must be written.

Defined at line 33 of file ../../src/ui/lib/escher/vk/impl/descriptor_set_allocator.h

const DescriptorSetLayout & layout ()

Defined at line 39 of file ../../src/ui/lib/escher/vk/impl/descriptor_set_allocator.h

vk::DescriptorSetLayout vk_layout ()

Defined at line 41 of file ../../src/ui/lib/escher/vk/impl/descriptor_set_allocator.h

size_t cache_hits ()

Defined at line 43 of file ../../src/ui/lib/escher/vk/impl/descriptor_set_allocator.h

size_t cache_misses ()

Defined at line 44 of file ../../src/ui/lib/escher/vk/impl/descriptor_set_allocator.h