64 void GenerateMipMaps(
VulkanRenderer& vulkanRenderer, VkPhysicalDevice physicalDevice,
const glm::uvec2& size, uint32_t mipLevels, VkFormat format);
A texture.
Definition: Texture.hpp:8
Format
The format of the texture.
Definition: Texture.hpp:18
Type
The type of texture.
Definition: Texture.hpp:11
Vulkan implementation of Texture.
Definition: VulkanTexture.hpp:13
VkImage GetImage() const
Get the image.
Definition: VulkanTexture.cpp:170
VkImageLayout GetImageLayout() const
Get the current image layout.
Definition: VulkanTexture.cpp:178
VulkanTexture(VulkanRenderer &vulkanRenderer, VkDevice device, VkPhysicalDevice physicalDevice, const glm::uvec2 size, Texture::Type type, Texture::Format format, int components=0, unsigned char *data=nullptr)
Create new Vulkan texture.
Definition: VulkanTexture.cpp:12
VkImageView GetImageView() const
Get image view.
Definition: VulkanTexture.cpp:174
void SetImageLayout(VkImageLayout layout)
Set the current image layout.
Definition: VulkanTexture.cpp:182
VkFormat GetFormat() const
Get the format of the texture.
Definition: VulkanTexture.cpp:166
~VulkanTexture() final
Destructor.
Definition: VulkanTexture.cpp:160