TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::vulkan::VulkanImageSet Class Reference

#include <gui_core/graphics/vulkan/vk_image.h>

Inheritance diagram for tachyon::vulkan::VulkanImageSet:

Public Member Functions

void RefreshDescriptors ()
 Points every index back at its image, after the images were made again.
void Clear () override
 Removes every image, freeing all indices.
tachyon::ImageIndex Add (tachyon::Image *image) override
 Adds an image (not owned) and returns its index.
void Remove (tachyon::ImageIndex index) override
 Frees the index for reuse; the image itself stays.
bool SetImage (tachyon::ImageIndex index, VulkanImage *image)
bool SetDescriptor (tachyon::ImageIndex index, const VkDescriptorImageInfo &descriptor)
tachyon::ImageIndex ReserveIndex ()
Public Member Functions inherited from tachyon::ImageSet
virtual ~ImageSet ()

Public Attributes

std::vector< VkDescriptorImageInfo > textures
std::vector< VulkanImage * > owners
 the image behind each index, or null

Static Public Attributes

static constexpr uint32_t kCapacity = 256
 Size of the shader's bindless texture array.

Member Function Documentation

◆ RefreshDescriptors()

void tachyon::vulkan::VulkanImageSet::RefreshDescriptors ( )

Points every index back at its image, after the images were made again.

◆ Clear()

void tachyon::vulkan::VulkanImageSet::Clear ( )
overridevirtual

Removes every image, freeing all indices.

Implements tachyon::ImageSet.

◆ Add()

tachyon::ImageIndex tachyon::vulkan::VulkanImageSet::Add ( tachyon::Image * image)
overridevirtual

Adds an image (not owned) and returns its index.

Implements tachyon::ImageSet.

◆ Remove()

void tachyon::vulkan::VulkanImageSet::Remove ( tachyon::ImageIndex index)
overridevirtual

Frees the index for reuse; the image itself stays.

Implements tachyon::ImageSet.

◆ SetImage()

bool tachyon::vulkan::VulkanImageSet::SetImage ( tachyon::ImageIndex index,
VulkanImage * image )

◆ SetDescriptor()

bool tachyon::vulkan::VulkanImageSet::SetDescriptor ( tachyon::ImageIndex index,
const VkDescriptorImageInfo & descriptor )

◆ ReserveIndex()

tachyon::ImageIndex tachyon::vulkan::VulkanImageSet::ReserveIndex ( )

Member Data Documentation

◆ kCapacity

uint32_t tachyon::vulkan::VulkanImageSet::kCapacity = 256
staticconstexpr

Size of the shader's bindless texture array.

◆ textures

std::vector<VkDescriptorImageInfo> tachyon::vulkan::VulkanImageSet::textures

◆ owners

std::vector<VulkanImage*> tachyon::vulkan::VulkanImageSet::owners

the image behind each index, or null


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