Class Texture#

Class Documentation#

class Texture#

Public Functions

Texture()#
Texture(const Texture&) = delete#
Texture &operator=(const Texture&) = delete#
Texture(Texture &&other) noexcept = default#
Texture &operator=(Texture &&other) noexcept = default#
void createFromFile(VulkanDevice *device, vk::CommandPool commandPool, const std::string &fileName)#
void setImage(vk::Image image)#
void setImageView(vk::ImageView imageView)#
inline uint32_t getMipLevel() const#
inline VulkanImage &getVulkanImage()#
inline VulkanImageView &getVulkanImageView()#
inline vk::Image &getImage()#
inline vk::ImageView &getImageView()#
void createImage(VulkanDevice *device, uint32_t width, uint32_t height, uint32_t in_mip_levels, vk::Format format, vk::ImageTiling tiling, vk::ImageUsageFlags use_flags, vk::MemoryPropertyFlags prop_flags)#
void createImageView(VulkanDevice *device, vk::Format format, vk::ImageAspectFlags aspect_flags, uint32_t in_mip_levels)#
void cleanUp()#
~Texture()#