Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Core::SamplerCache Class Reference

#include <ApplicationContext.h>

Collaboration diagram for Engine::Core::SamplerCache:

Public Member Functions

VkSampler getOrCreate (VkDevice device, VkSamplerAddressMode addressMode)
void cleanup (VkDevice device)

Private Attributes

std::unordered_map< VkSamplerAddressMode, VkSampler > cache_
std::mutex mutex_

Detailed Description

Definition at line 43 of file ApplicationContext.h.

Member Function Documentation

◆ cleanup()

void Engine::Core::SamplerCache::cleanup ( VkDevice device)

◆ getOrCreate()

VkSampler Engine::Core::SamplerCache::getOrCreate ( VkDevice device,
VkSamplerAddressMode addressMode )

Member Data Documentation

◆ cache_

std::unordered_map<VkSamplerAddressMode, VkSampler> Engine::Core::SamplerCache::cache_
private

Definition at line 49 of file ApplicationContext.h.

◆ mutex_

std::mutex Engine::Core::SamplerCache::mutex_
private

Definition at line 50 of file ApplicationContext.h.


The documentation for this class was generated from the following file: