Class TextureResource¶
Defined in File render_graph.hpp
Inheritance Relationships¶
Base Type¶
public inexor::vulkan_renderer::RenderResource
(Class RenderResource)
Class Documentation¶
-
class 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}¶
-
inline TextureResource(std::string &&name, TextureUsage usage)¶