NDEVR
API Documentation
VulkanImageManager

Manages all images within the Vulkan space. More...

Collaboration diagram for VulkanImageManager:
[legend]

Public Member Functions

 VulkanImageManager (const ConstPointer< VulkanDevice > &instance)
 Constructs an image manager for the given device.
 ~VulkanImageManager ()
 Destructor.
ConstPointer< VulkanImageDatagetImage (const StringView &file)
 Retrieves or loads a Vulkan image from a file path.
bool needsImageUpdate (Time time)
 Checks whether any images need updating since the given time.
bool updateImages ()
 Updates all managed images that have changed on disk.

Public Attributes

Time m_check_time
 The last time images were checked for updates.
ConstPointer< VulkanDevicem_device
 The Vulkan device.
Dictionary< String, DynamicPointer< VulkanImageData > > m_file_map
 Maps file paths to loaded image data.
uint04 m_mip_map_depth
 The mip map depth used for new images.

Detailed Description

Manages all images within the Vulkan space.


Definition at line 205 of file VulkanImage.h.

Constructor & Destructor Documentation

◆ VulkanImageManager()

VulkanImageManager::VulkanImageManager ( const ConstPointer< VulkanDevice > & instance)

Constructs an image manager for the given device.

Parameters
[in]instanceThe Vulkan device.

Member Function Documentation

◆ getImage()

ConstPointer< VulkanImageData > VulkanImageManager::getImage ( const StringView & file)

Retrieves or loads a Vulkan image from a file path.

Parameters
[in]fileThe image file path.
Returns
A const pointer to the image data.

◆ needsImageUpdate()

bool VulkanImageManager::needsImageUpdate ( Time time)

Checks whether any images need updating since the given time.

Parameters
[in]timeThe time to check against.
Returns
True if updates are needed.

◆ updateImages()

bool VulkanImageManager::updateImages ( )

Updates all managed images that have changed on disk.

Returns
True if any images were updated.

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