|
TachyonUI 0.1.0
High-performance UI for building tools.
|
#include <gui_core/graphics/vulkan/vk_image.h>
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. | |
| void tachyon::vulkan::VulkanImageSet::RefreshDescriptors | ( | ) |
Points every index back at its image, after the images were made again.
|
overridevirtual |
Removes every image, freeing all indices.
Implements tachyon::ImageSet.
|
overridevirtual |
Adds an image (not owned) and returns its index.
Implements tachyon::ImageSet.
|
overridevirtual |
Frees the index for reuse; the image itself stays.
Implements tachyon::ImageSet.
| bool tachyon::vulkan::VulkanImageSet::SetImage | ( | tachyon::ImageIndex | index, |
| VulkanImage * | image ) |
| bool tachyon::vulkan::VulkanImageSet::SetDescriptor | ( | tachyon::ImageIndex | index, |
| const VkDescriptorImageInfo & | descriptor ) |
| tachyon::ImageIndex tachyon::vulkan::VulkanImageSet::ReserveIndex | ( | ) |
|
staticconstexpr |
Size of the shader's bindless texture array.
| std::vector<VkDescriptorImageInfo> tachyon::vulkan::VulkanImageSet::textures |
| std::vector<VulkanImage*> tachyon::vulkan::VulkanImageSet::owners |
the image behind each index, or null