Class TextureResource

Inheritance Relationships

Base Type

Class Documentation

class inexor::vulkan_renderer::TextureResource : public inexor::vulkan_renderer::RenderResource

Public Functions

inline TextureResource(std::string &&name, TextureUsage usage)
inline void set_format(VkFormat format)

Specifies the format of this texture that is required when the physical texture is made.

For TextureUsage::BACK_BUFFER textures, using the swapchain image format is preferable in most cases. For TextureUsage::DEPTH_STENCIL_BUFFER textures, a VK_FORMAT_D* must be used.

Private Members

friend RenderGraph
const TextureUsage m_usage
VkFormat m_format = {VK_FORMAT_UNDEFINED}